Learn R Programming

MRIaggr (version 1.1.5)

selectClinic: Extract clinical data

Description

Extract the clinical data from a MRIaggr object.

Usage

"selectClinic"(object, param = NULL)

Arguments

object
an object of class MRIaggr. REQUIRED.
param
the clinical parameters to extract. character vector or NULL leading to extract all the clinical parameters.

Value

A one line data.frame containing the clinical data in columns.

See Also

allocClinic<- to allocate values in the clinic slot.

Examples

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

## select all clinical data
res <- selectClinic(MRIaggr.Pat1_red)

## select only the gender
res <- selectClinic(MRIaggr.Pat1_red, param = "Sex")

Run the code above in your browser using DataLab