chk_null_or | R Documentation |
Checks if NULL or passes test.
chk_null_or(x, chk, ..., vld, x_name = NULL)
x |
The object to check. |
chk |
|
... |
Arguments passed to chk. |
vld |
A vld function. |
x_name |
A string of the name of object x or NULL. |
An informative error if the test fails.
chk_null_or(NULL, chk_number)
chk_null_or(1, chk_number)
try(chk_null_or("1", chk_number))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.