| impute_xifti | R Documentation |
"xifti" dataImpute locations using the values of neighboring locations.
impute_xifti(
xifti,
mask = NULL,
impute_FUN = function(x) {
mean(x, na.rm = TRUE)
},
...
)
xifti |
A |
mask |
A logical vector whose length matches the number of rows in
If On the other hand, if |
impute_FUN |
The function to use to impute the values. It should accept
a vector of numeric values (the values of neighboring locations) and return
a single numeric value (the value to assign). Default: |
... |
Additional arguments to |
Cortex vertices will be imputed using the five or six other vertices which share a face. Subcortex voxels will be imputed using the up to six immediate neighbors.
Note that during imputation, locations in mask, as well as the medial
wall for the cortex, are temporarily set to NA.
Note that handling of NA values and the mask slightly differs from
the cortex and subcortex. impute_FUN like mean will behave
similarly, but functions which change depending on the amount of neighbor
locations with NA values may differ.
impute_FUN should handle NA values accordingly.
For most use cases, it will make sense to pass na.rm=TRUE to
... if impute_FUN is a summary function like mean.
The input xifti with imputed data values.
Other manipulating xifti:
add_surf(),
apply_parc(),
apply_xifti(),
combine_xifti(),
convert_xifti(),
merge_xifti(),
move_to_mwall(),
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.