Learn R Programming

MRIaggr (version 1.1.5)

initNum: Initialization of the slice numbers

Description

Check and initialize the num argument of a Carto3D or a MRIaggr method. For internal use.

Usage

"initNum"(object, num, test = TRUE, init = TRUE, method)
"initNum"(object, num, test = TRUE, init = TRUE, slice_var = "k", method)

Arguments

object
an object of class Carto3D or MRIaggr.
num
the slice numbers to check or initialize. numeric vector or NULL. See the details section.
test
should the slice numbers be checked ? logical.
init
should the slice numbers be initialized if num equals NULL ? logical.
slice_var
the type of slice to extract. "i" for sagittal, "j" for coronal and "k" for transverse. character.
method
the name of the function that called the initializer. character.

Details

ARGUMENTS : Setting num to NULL leads to load all available slices.