Learn R Programming

GenomicDataCommons (version 1.3.1)

rbindlist2: rbindlist that deals with NULL rows

Description

This is a simple function that removes null values from the input list before applying rbindlist.

Usage

rbindlist2(x, ...)

Arguments

x

a list that is appropriate for input to rbindlist, but may include NULLs, which will be filtered.

...

passed directly to rbindlist.

Value

a data.table,data.frame object.

Examples

Run this code
# NOT RUN {
input = list(list(a=1,b=2,d='only this row'),
             NULL,
             list(a=3,b=4))
rbindlist2(input)

# }

Run the code above in your browser using DataLab