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