Keeps brain-model rows, map metadata and label tables bound to new values. Changing indices or map counts requires a new explicitly constructed layout. Previously unavailable samples remain unavailable, even when their replacement values are finite or use an existing label key.
Arguments
- x
A
CiftiDatafromread_cifti().- values
Numeric matrix with the same dimensions as
x$values.
Examples
if (FALSE) { # \dontrun{
x <- read_cifti("map.dscalar.nii")
x <- replace_cifti_values(x, x$values * 2)
} # }