is.empty | R Documentation |
Use this function to check if a variable is empty or not
is.empty(x)
x |
A variable. Can be a vector,matrix,list or data.frame |
A boolean: TRUE if argument x
is empty, FALSE otherwise
a = matrix() is.empty(a) [1] TRUE a = c(2, 4) is.empty(a) [1] FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.