isEmpty | R Documentation |
Check if the provided object is empty
isEmpty(object)
object |
An object or an atomic vector or a list of objects. |
TRUE
if the object is empty.
# empty list or data.frame isEmpty(NULL) isEmpty(numeric()) isEmpty(list()) isEmpty(data.frame()) # accounts for filtering of arrays and data.frame df <- data.frame(x = c(1, 2, 3), y = c(4, 5, 6)) isEmpty(df) isEmpty(df$x[FALSE]) isEmpty(df[FALSE, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.