drop_nulls | R Documentation |
NULL
values from list or vectorsDrop NULL
values from list or vectors
drop_nulls(x, .invalids = list("is.null"))
x |
list to check |
.invalids |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.