Number of input files in a ModelArray
nInputFiles.RdReturns the number of input files (i.e., subjects or source files) for a given scalar in a ModelArray. This is the column count of the scalar matrix.
Usage
nInputFiles(x, scalar = NULL)
# S4 method for class 'ModelArray'
nInputFiles(x, scalar = NULL)Arguments
- x
A ModelArray object.
- scalar
Optional character string. Name of the scalar to query. Defaults to the first scalar in
names(scalars(x)).
Examples
if (FALSE) { # \dontrun{
ma <- ModelArray("data.h5", scalar_types = c("FD"))
nInputFiles(ma)
} # }