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()
#> [1] FALSE TRUE TRUE FALSE#> [1] FALSE TRUE TRUE FALSE