Learn R Programming

freesurferformats (version 1.1.0)

cifti.subset.dim: Subset one dimension of an array.

Description

Subset one dimension of an array.

Usage

cifti.subset.dim(data, dim, selection)

Value

the subset, with the dimensions of data preserved.

Arguments

data

the array to subset.

dim

integer, the dimension to subset.

selection

integer vector or NULL, the indices to keep.