drop_nulls {dipsaus}R Documentation

Drop NULL values from list or vectors

Description

Drop NULL values from list or vectors

Usage

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


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


[Package dipsaus version 0.2.5 Index]