Learn R Programming

ciftiTools (version 0.6.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). Can also be a length-one vector to set all values equally.

newnames

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

Value

The new "xifti"

Details

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

See Also

Other functions for manipulating `xifti` objects: add_surf(), apply_xifti(), combine_xifti(), convert_to_dlabel(), merge_xifti(), remove_xifti(), select_xifti(), transform_xifti()