## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## total number of observations
res <- selectN(MRIaggr.Pat1_red)
## number of observations for the hemisphere that contains the lesion
res <- selectN(MRIaggr.Pat1_red, hemisphere = "lesion")
## number of observations in the first 1000 observations t
## that are in the hemisphere containing the lesion
res <- selectN(MRIaggr.Pat1_red, subset = 1:1000, hemisphere = "lesion")
Run the code above in your browser using DataLab