powered by
This is a function that creates a data matrix for analysis from a file saved in image format.
imgdatamat( imgfnames, mask = NULL, ROI = FALSE, atlas = NULL, atlasdataset = NULL, ROIids = NULL, zeromask = FALSE, schange = FALSE, ... )
data matrix
binary brain position.
three dimensional vector for image dimension
a vector for (nifti) file names to be used.
a vector for brain mask data.
a logical for roi data set.
an array for the atlas.
a matrix or data.frame. colnames shold include "ROIid" and "ROIname".
a vector
a logical for masking voxel with all zeros.
a logical for change dimension.
further arguments passed to or from other methods.
imgdatamat requires image file names.
imgdatamat
# imgfnames1 = c("img1.nii", "img2.nii") # imgdata = imgdatamat(imgfnames1)
Run the code above in your browser using DataLab