is_empty | R Documentation |
Check if an object is empty.
is_empty(x)
x |
( |
A logical value indicating if the object is empty.
## Not run:
is_empty(1:10) # FALSE
is_empty(1:0) # TRUE
is_empty(NULL) # TRUE
is_empty(c()) # TRUE
is_empty(character()) # TRUE
is_empty(data.frame()) # TRUE
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.