anatApply | R Documentation |
This function is used to compute an arbitrary function of every region in an anat structure.
anatApply(vols, grouping = NULL, method = mean, ...)
vols |
anatomy volumes |
grouping |
a factor grouping with which to perform operations |
method |
The function which to apply [default mean] |
... |
Extra arguments to the function passed to method |
out: The output will be a single vector containing as many elements as there are regions in the input variable by the number of groupings
## Not run:
getRMINCTestData()
gf = read.csv("/tmp/rminctestdata/CIVET_TEST.csv")
gf = civet.getAllFilenames(gf,"ID","TEST","/tmp/rminctestdata/CIVET","TRUE","1.1.12")
gf = civet.readAllCivetFiles("/tmp/rminctestdata/AAL.csv",gf)
vm <- anatApply(gf$lobeThickness,gf$Primary.Diagnosis)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.