null.omit {eList} | R Documentation |
Function removes all items that are NULL
or empty from a list
or other object.
null.omit(x)
x |
object to be checked |
x
without NULL
entries
l <- list(a=2, b=NULL, c = 3)
length(l) == 3
k <- null.omit(l)
length(k) == 2