is_empty | R Documentation |
A function to test whether an object is empty. It checks the length
of the object, so it has different behaviour than is.null
.
is_empty(obj)
obj |
a general object |
a logical specifying if the object is NULL or not.
# TRUE
is_empty(NULL)
is_empty(c())
# FALSE
is_empty("")
is_empty(NA)
is_empty(NaN)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.