Learn R Programming

MRIaggr (version 1.1.5)

supprContrast: Remove a contrast parameter

Description

Remove a contrast parameter from a MRIaggr object.

Usage

"supprContrast"(object, verbose = optionsMRIaggr("verbose")) <- value

Arguments

object
an object of class MRIaggr. REQUIRED.
value
the name of the parameter(s) that should be removed. character vector. REQUIRED.
verbose
should the execution of the function be traced ? logical.

Value

None.

Details

ARGUMENTS: value can be a numeric vector indicating the position of the parameters to remove in the data slot.

See Also

allocContrast<- to allocate a contrast parameter. selectParameter to display the contrast parameters.

Examples

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

## available contrast parameters
selectParameter(MRIaggr.Pat1_red)

## delete two contrast parameters
supprContrast(MRIaggr.Pat1_red) <- c("MTT_t0", "MASK_DWI_t0")

## remaining contrast parameters
selectParameter(MRIaggr.Pat1_red)

Run the code above in your browser using DataLab