Learn R Programming

MRIaggr (version 1.1.5)

selectHemispheres: Extract the position of the lesion in each hemisphere

Description

Extract the position of the lesion in each hemisphere from a MRIaggr object.

Usage

"selectHemispheres"(object, hemisphere = "both")

Arguments

object
an object of class Carto3D or MRIaggr. REQUIRED.
hemisphere
the hemisphere of interest. character. See the details section.

Value

A character vector or a data.frame.

Details

Possible values for the hemisphere argument are:
  • "both" : indicates the presence of the lesion in both hemispheres.
  • "left" : indicates the presence of the lesion in the left hemisphere.
  • "right" : indicates the presence of the lesion in the right hemisphere.
  • "lesion" : indicates which hemispheres are lesioned.
  • "contralateral" : indicates which hemispheres are intact.

Examples

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

## selection
selectHemispheres(MRIaggr.Pat1_red)
selectHemispheres(MRIaggr.Pat1_red, hemisphere = "right")
selectHemispheres(MRIaggr.Pat1_red, hemisphere = "left")
selectHemispheres(MRIaggr.Pat1_red, hemisphere = "lesion")
selectHemispheres(MRIaggr.Pat1_red, hemisphere = "contralateral")

Run the code above in your browser using DataLab