Description Usage Arguments Details Value Examples
Returns TRUE if object is either NULL or NA.
1 | is_nn(x)
|
x |
object to be tested |
The no value NULL and missing value NA are both used to signify no value.
NULL is often used as an empty parameter in functions and NA is used for
the same reason in the argparser::argparser package (because setting value to NULL
in list and environments means to delete it).
For this reason, a missing (unspecified) parameter can can reach function
as both NULL and NA. This is simple shorthand to test both conditions.
TRUE if the value is NULL or all values are NA
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.