Description Usage Arguments Value Examples
Compute the number of lesion observations at each slice.
1 2 3 | ## S4 method for signature 'MRIaggr'
calcTableLesion(object, maskN, mask = NULL, numeric2logical = FALSE,
verbose = optionsMRIaggr("verbose"), update.object = FALSE, overwrite = FALSE)
|
object |
an object of class |
maskN |
the binary contrast parameter indicating the lesion. character. REQUIRED. |
mask |
the binary contrast parameter indicating the brain. character or |
numeric2logical |
should |
verbose |
should the execution of the function be traced ? logical. |
update.object |
should the resulting lesion table be stored in |
overwrite |
if a lesion table is already stored in |
A data.frame containing the number of observation within the mask at each slice.
1 2 3 4 5 6 7 8 9 | ## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## compute table
res <- calcTableLesion(MRIaggr.Pat1_red, maskN = c("MASK_DWI_t0", "MASK_T2_FLAIR_t2"),
numeric2logical = TRUE, update.object = TRUE, overwrite = TRUE)
## extract table
res <- selectTable(MRIaggr.Pat1_red, "lesion")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.