Description Usage Arguments Examples
View source: R/compact.R
Removes NULL entrires from list (stolen from plyr)
1
compact(x)
x
A list
1 2 3 4 5
l <- vector("list", length = 5) l[[1]]] <- "A" print(l) l <- compact(l) print(l)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.