list2df: Convert a list to a data frame.

Description Usage Arguments Value Examples

Description

Convert a list to a data frame. Just a wrapper of rbindlist in data.table

Usage

1
list2df(l, use.names = fill, fill = FALSE, idcol = NULL)

Arguments

l

A list constaining data.table, data.frame, matrix or list object or vector.

use.names

If TRUE items will be bound by matching column names.

fill

If TRUE fills missing columns with NAs.

idcol

Generates an index column. Default (NULL) is not to.

Value

A data frame.

Examples

1
df <- list2df(list(w1 = list(a = 1, b = 2, c = 3), w2 = list(a = 4, b = 5, c = 6)))

fountainer/fountainr documentation built on May 16, 2019, 1:51 p.m.