Description Usage Arguments Details Value
View source: R/utilities-input-validation.R
Helper function for checkRange. Checks if a supplied range is an ordered pair. Coerces any vector of length two or greater into an ordered pair, and issues an error for shorter vectors.
1 | checkRange1D(rng, varType, emptyOkay = FALSE)
|
rng |
Range. A numeric vector that ought to be an ordered pair. |
varType |
String describing the variable type. One of 'logical' or 'numeric'. |
emptyOkay |
Boolean. TRUE if a null or NA range is allowed, default to FALSE. |
If varType is 'logical', range is coerced to c(0,1).
If emptyOkay, no error will be raised if the input range is null or NA, and an NA value will be returned.
Vector of length 2 or NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.