MRIaggr-selectDescStats: Extract non-stardard elements

Description Usage Arguments Details See Also Examples

Description

Extract elements in the ls_descStats slot of a MRIaggr object.

Usage

1
2
## S4 method for signature 'MRIaggr'
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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")

bozenne/MRIaggr documentation built on May 13, 2019, 1:39 a.m.