drop_null.list: Drop list elements with value 'NULL'

View source: R/drop.R

drop_null.listR Documentation

Drop list elements with value NULL

Description

Drop list elements with value NULL

Usage

## S3 method for class 'list'
drop_null(x)

Arguments

x

(list) (Nested) list object for which to drop desired values

Examples

x <- list(
    foo = list(bar = NULL, baz = list(x = 1, y = NULL, z = 3)),
    bar = 2,
    baz = NULL
)
drop_null(x)

rappster/drop documentation built on May 16, 2022, 12:25 a.m.