powered by
Function removes all items that are NULL or empty from a list or other object.
NULL
null.omit(x)
object to be checked
x without NULL entries
x
# NOT RUN { l <- list(a=2, b=NULL, c = 3) length(l) == 3 k <- null.omit(l) length(k) == 2 # }
Run the code above in your browser using DataLab