NULL
R/utils.R
drop_nulls.Rd
Drop NULL values from list or vectors
drop_nulls(x, .invalids = list("is.null"))
list to check
a list of functions, or function name. Default is 'is.null'.
list or vector containing no invalid values
x <- list(NULL,NULL,1,2) drop_nulls(x) # length of 2 #> [[1]] #> [1] 1 #> #> [[2]] #> [1] 2 #>