%outside% | R Documentation |
Test if a vector of numbers is outside of a specified range, with the bounds optionally included.
x %outside% rng
`%outside%`(x, rng, inc_bounds = FALSE)
x |
numeric vector to be tested. |
rng |
vector of minimum and maximum values of the range. Elements beyond the first 2 are ignored. |
inc_bounds |
logical, whether to include the bounds in the set that is tested. If set to TRUE, values identical to the bounds are considered matches. Defaults to FALSE. Works only if the function is not used as an infix operator (see usage example below). |
a logical vector with one element for each element in x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.