move_to_mwall: Move data locations to the medial wall

View source: R/move_mwall.R

move_to_mwallR Documentation

Move data locations to the medial wall

Description

Move cortical data locations with a specific value(s) to the medial wall mask. For example, dlabel CIFTIs often have medial wall vertices set to a specific key value, rather than a medial wall mask. This function can move those data locations from the data matrix to the medial wall mask in the metadata.

Usage

move_to_mwall(xifti, values = c(NA, NaN), drop = FALSE)

Arguments

xifti

A "xifti" object.

values

Medial wall values. Default: NA and NaN. Data locations in the left and right cortex that are one of these values (across all columns) will be moved to the medial wall mask in the metadata.

drop

Only used if the "xifti" has the dlabel intent. Drop the key(s) in values from the label tables, for columns in which they no longer exist? Default: FALSE.

Value

The "xifti" with re-organized data and medial wall masks

See Also

move_from_mwall

Other manipulating xifti: add_surf(), apply_parc(), apply_xifti(), combine_xifti(), convert_to_dlabel(), merge_xifti(), move_to_submask(), newdata_xifti(), remap_cifti(), remove_xifti(), resample_cifti(), resample_cifti_from_template(), scale_xifti(), select_xifti(), set_names_xifti(), smooth_cifti(), transform_xifti()


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.