powered by
NULL
Drop NULL values from list or vectors
drop_nulls(x, .invalids = list("is.null"))
list or vector containing no invalid values
list to check
a list of functions, or function name. Default is 'is.null'.
x <- list(NULL,NULL,1,2) drop_nulls(x) # length of 2
Run the code above in your browser using DataLab