View source: R/cheers_checker.R
find_previous_vector_element | R Documentation |
Find the previous element of the vector before a value
find_previous_vector_element(value, vector, LTE = FALSE)
value |
A value of numeric values |
vector |
A vector of numeric values |
LTE |
a boolean to determine collection on "less than" or "less than equal" |
The previous element of the vector before the value
find_previous_vector_element(value = 5, vector = 1:10)
find_previous_vector_element(value = 5, vector = 6:10)
find_previous_vector_element(value = 5, vector = 5:10, LTE = FALSE)
find_previous_vector_element(value = 5, vector = 5:10, LTE = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.