isempty | R Documentation |
Determine if an object is empty.
isempty(x)
x |
an R object |
An empty object has length zero.
TRUE
if x
has length 0; otherwise, FALSE
.
isempty(c(0)) # FALSE
isempty(matrix(0, 1, 0)) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.