check_is_integerish | R Documentation |
Check if a variable is integerish
check_is_integerish(
x,
allow_null = FALSE,
allow_na = TRUE,
.x_name = rlang::caller_arg(x),
.call = rlang::caller_env(),
.class = .error_class
)
check_is_numeric(
x,
allow_null = FALSE,
allow_na = TRUE,
.x_name = rlang::caller_arg(x),
.call = rlang::caller_env(),
.class = .error_class
)
x |
the variable to check |
allow_null |
allow check to pass if x is null |
allow_na |
allow chechk to pass if x contains na |
.x_name |
the name of x in the parent environment |
.call |
The caller enviroment, used to get the name of the function that called the check |
.class |
The class of the error, defaults to 'checkr_error' |
TRUE invisibly if the variable is integerish
check_is_numeric()
: check that a variable is numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.