Description Usage Arguments Examples
View source: R/compact.R
Filter NULL entries from a list.
NULL
1
compact(x)
x
A list.
1 2 3 4 5 6 7
l <- list(a=1, b=NULL, c=NA) compact(l) ## $a ## [1] 1 ## ## $c ## [1] NA
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.