Is a numeric value between two other values?
isBetween(x, a, b = NULL, include.ends = FALSE, na.convert = TRUE)vector of numeric values to check.
numeric values describing range.
logical. Should test include a and b? Is
test > and < or >= and <= ?
logical. If TRUE and result of test is NA
because either x, a, or b is NA,
return FALSE, otherwise return NA.
Eric Archer eric.archer@noaa.gov
Order of a and b does not matter. If b is
NULL the range will be taken from values in a.