View source: R/utils_compact.R
compact_list | R Documentation |
Remove empty elements from lists
compact_list(x, remove_na = FALSE)
x |
A list or vector. |
remove_na |
Logical to decide if |
compact_list(list(NULL, 1, c(NA, NA)))
compact_list(c(1, NA, NA))
compact_list(c(1, NA, NA), remove_na = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.