drop_nulls: Drop 'NULL' values from list or vectors

Description Usage Arguments Value Examples

Description

Drop NULL values from list or vectors

Usage

1
drop_nulls(x, .invalids = list("is.null"))

Arguments

x

list to check

.invalids

a list of functions, or function name. Default is 'is.null'.

Value

list or vector containing no invalid values

Examples

1
2
x <- list(NULL,NULL,1,2)
drop_nulls(x)  # length of 2

dipsaus documentation built on Sept. 6, 2021, 5:08 p.m.