is_empty | R Documentation |
Test if vector elements are empty
is_empty(x, ...)
x |
|
... |
additional arguments are ignored. |
This function simply checks if values in a vector are
NA
or ""
with nchar(x) == 0
.
For factor
input, the values are coerced with as.character()
.
It might be slightly faster to test factor levels then to
apply to the full vector.
Todo: Make this function work with list
input, so it
requires all elements to be is_empty()
.
Other genejam:
freshenGenes2()
,
freshenGenes3()
,
freshenGenes()
,
get_anno_db()
x1 <- c("A", "", NA, "B,C"); is_empty(x1) is_empty(factor(x1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.