View source: R/is_comparisons.R
is_less_than | R Documentation |
This function checks if a numeric vector is less than a specified maximum value. It can also optionally check if all elements of the vector must be less than the maximum value or if only one element is sufficient
is_less_than(x, maximum)
x |
a numeric vector to check |
maximum |
The maximum value to compare against |
A logical value indicating whether all elements of the numeric vector x are less than the specified maximum value
if(interactive()){
is_less_than(c(1,2,3), 4) # TRUE
is_less_than(c(1,2,3), 2) # FALSE
is_less_than(c(1,2,4), 3) # FALSE
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.