drop_null.list | R Documentation |
NULL
Drop list elements with value NULL
## S3 method for class 'list' drop_null(x)
x |
(list) (Nested) list object for which to drop desired values |
x <- list( foo = list(bar = NULL, baz = list(x = 1, y = NULL, z = 3)), bar = 2, baz = NULL ) drop_null(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.