View source: R/unlist_null2na.R
unlist_null2na | R Documentation |
This function converts NULL to NA and then apply unlist(). Inspired by https://stackoverflow.com/questions/2991514/prevent-unlist-to-drop-null-values
unlist_null2na(l, ...)
... |
passed to unlist() |
x |
input list |
x <- list(NULL, 1, 2) unlist_null2na(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.