Learn R Programming

MRIaggr (version 1.1.5)

initMask: Initialization of the slice numbers

Description

Check and initialize the mask argument of a MRIaggr method. For internal use.

Usage

"initMask"(object, mask, test = TRUE, init = TRUE, format = "data.frame", arg_name = "mask", long_name = "mask", method)

Arguments

object
an object of class Carto3D or MRIaggr.
mask
the binary contrast parameters to check or initialize. character vector.
test
should the mask be checked ? logical.
init
should the mask be initialized ? logical. See the details section.
format
the format of the output. Any of "vector", "matrix" and "data.frame".
arg_name
a short name for the error message. character.
long_name
the complete name for the error message. character.
method
the name of the function that called the initializer. character.

Details

ARGUMENTS : Setting init to TRUE leads to apply numeric2logical to each mask.