data.table (version 1.8.2)

rbindlist: Makes one data.table from a list of many

Description

Same as do.call("rbind",l), but much faster.

Usage

rbindlist(l)

Arguments

l
A list of data.table, data.frame or list objects. Each item must be either NULL or have the same number of columns of consistent type. All items do not have to be the same type; e.g, a data.table

Value

  • An unkeyed data.table containing a concatenation of all the items passed in.

See Also

data.table

Examples

Run this code
DT1 = data.table(A=1:3,B=letters[1:3])
    DT2 = data.table(A=4:5,B=letters[4:5])
    l = list(DT1,DT2)
    rbindlist(l)

Run the code above in your browser using DataLab