Learn R Programming

MRIaggr (version 1.1.5)

selectDescStats: Extract non-stardard elements

Description

Extract elements in the ls_descStats slot of a MRIaggr object.

Usage

"selectDescStats"(object, name = NULL)

Arguments

object
an object of class MRIaggr. REQUIRED.
name
the name of the element to select. character or NULL leading to select all available elements.

Details

This function requires to have installed the Matrix and the spam package to work when argument name is set to "W_euclidean".

See Also

allocDescStats<- to allocate elements in the ls_descStats slot. calcHemisphere to identify the hemispheres. allocHemisphere<- and allocContrast<- to allocate hemispheres obtained from an external source.

Examples

Run this code
## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")

calcGroupsMask(MRIaggr.Pat1_red,mask = c("MASK_DWI_t0","MASK_T2_FLAIR_t2"),
               W.range = 6, W.spatial_res = c(1.875,1.875,6),
               update.object = TRUE, overwrite = TRUE)

## select all elements in the slot @ls_descStats
ls_descStats <- selectDescStats(MRIaggr.Pat1_red)
names(ls_descStats)

## get the name of all elements present in the slot @ls_descStats
selectParameter(MRIaggr.Pat1_red, type = "ls_descStats")

## select a specific element 
res <- selectDescStats(MRIaggr.Pat1_red, name = "GroupsLesion")

Run the code above in your browser using DataLab