drop_nulls: Drop 'NULL' values from list or vectors

drop_nullsR 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


dipsaus documentation built on June 27, 2024, 5:10 p.m.