Learn R Programming

MRIaggr (version 1.1.5)

selectIdentifier: Extract the identifier

Description

Extract the patient identifier from a Carto3D or from a MRIaggr object.

Usage

"selectIdentifier"(object)
"selectIdentifier"(object)

Arguments

object
an object of class Carto3D or MRIaggr. REQUIRED.

Value

A character.

Examples

Run this code
#### 1- Carto3D method ####
## load nifti files and convert them to Carto3D
path.Pat1 <- system.file("nifti", package = "MRIaggr")
nifti.Pat1_TTP_t0 <- readMRI(file.path(path.Pat1, "TTP_t0"), format = "nifti")
Carto3D.Pat1_TTP_t0 <- constCarto3D(nifti.Pat1_TTP_t0, identifier = "Pat1", param = "TTP_t0")

## selection
selectIdentifier(Carto3D.Pat1_TTP_t0)

#### 2- MRIaggr method ####
## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")

## selection
selectIdentifier(MRIaggr.Pat1_red)

Run the code above in your browser using DataLab