Skip to contents

Returns 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)).

Value

Integer. The number of input files (columns) in the scalar matrix.

Examples

if (FALSE) { # \dontrun{
ma <- ModelArray("data.h5", scalar_types = c("FD"))
nInputFiles(ma)
} # }