| empty | R Documentation |
Check, if a container is empty, i.e. does not contain elements.
empty(x)
x |
A |
Returns TRUE, if the container is empty, and FALSE otherwise.
v <- cpp_vector(4:6)
v
# 4 5 6
clear(v)
empty(v)
# [1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.