prepare.mask | R Documentation |
Prepare a mask to do masking
prepare.mask(new_mask, orig_mask=NULL, thresh=0)
new_mask |
vector or object that can be converted to a vector |
orig_mask |
NULL or vector of logical elements |
thresh |
if new_mask is numeric than threshold at this level |
Intended as a function called by do.mask
.
Ensures that input new_mask
is a vector of logicals for masking.
If orig_mask
is specified, then this implies that new_mask
will be masking an object later that has already been masked. The new_mask
can then be either the same length as orig_mask
or the length of the
number of TRUE elements in new_mask
.
vector of logicals
Zarrar Shehzad
do.mask
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.