mask_nii | R Documentation |
mask_nii: mask a nii by a mask, returns num matrix w/ rows of time, columns of i_j_k voxels
mask_nii(fname_or_oro, mask)
fname_or_oro |
a nifti filename or oro.nifti object |
mask |
a "logi" booleen matrix (likely from |
## Not run:
mask <- read_mask("striatum_mask.nii.gz") # 1827 vx in mask
data <- mask_nii("subj_ts.nii.gz",mask) # 320 trs
# data: num [1:320, 1:1827]
# colnames: chr [1:1827] "47_61_30" ...
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.