Learn R Programming

ciftiTools (version 0.3.1)

newdata_xifti: Replace the data in a "xifti"

Description

Replace the data in a "xifti" with new data from a data matrix.

Usage

newdata_xifti(xifti, newdata, newnames = NULL)

Arguments

xifti

The "xifti"

newdata

The \(V \ times T\) matrix of data values to replace those in xifti with. The left cortex vertices should be at the top, right cortex vertices in the middle, and subcortex vertices at the bottom (when present).

newnames

Replace the names in the xifti. If NULL (default), keep the original names.

Value

The new "xifti"

Details

If the "xifti" has \(V\) greyordinates and T timepoints in total, newdata should be a \(V \times T\) matrix.