View source: R/contrast_parser.R
contrast_parser | R Documentation |
helper function to calculate contrasts of one or more images using a combination of image arithmetic and logical subsetting
contrast_parser(expr, data = NULL, default_val = NA_real_)
expr |
a string or expression containing the image calculation to be performed |
data |
a data.frame containing all variables used in |
default_val |
the value to be returned for any element of the contrast calculation that
does not pass through the arithmetic, either because of logical subsetting or because it
is exactly zero. In general, leave this as |
Michael Hallquist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.