is_increasing_vector | R Documentation |
Checks if the passed entity is a vector of increasing numerical values.
is_increasing_vector(v, strictly = FALSE, allow_na_values = FALSE)
v |
The vector to check |
strictly |
boolean: If TRUE, only strictly increasing vectors will satisfy the test |
allow_na_values |
boolean: If TRUE, NA values are allowed in the vector and are considered as not existent. If FALSE, fails for vectors containing NAs. |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_increasing_vector(my_parameter))
# For check
if (qscheck::is_increasing_vector(my_parameter)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.