is_empty | R Documentation |
Check whether an object is empty, e.g. has no sub-elements, is NA, or is the empty string.
is_empty(x)
x |
An object. |
is_empty(NA) # TRUE
is_empty("") # TRUE
is_empty(list()) # TRUE
is_empty(list(list())) # TRUE
is_empty(1) # FALSE
is_empty(list(1)) # FALSE
is_empty(list(list(1))) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.