Skip to contents

Return list with removed NULL elements.

Usage

filter_nulls(l)

Arguments

l

A list.

Value

A list without NULL elements.

Examples

filter_nulls(list(a = 1, b = NULL, c = 3))
#> $a
#> [1] 1
#> 
#> $c
#> [1] 3
#>