Description Usage Arguments Value Examples
Reports error if x > max_x
1 | error_max_value(x, max_x, variable_name)
|
x |
numeric vector or array object. |
max_x |
maximum allowed value in the vector or array. |
variable_name |
name of object x. |
Error message if any component of x
is larger than max_x
.
1 2 3 4 | ## Reports an error (not run)
##love <- c(1,2)
##max_love <- 1.5
##error_max_value(love,max_love,get_variable_name(love))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.