as_df: Attempt to convert list to a data.frame

Description Usage Arguments Examples

View source: R/as_df.R

Description

Attempt to convert list to a data.frame

Usage

1
as_df(x, clean = TRUE)

Arguments

x

input, a list

clean

(logical) clean 0 length elements. Default: TRUE

Examples

1
2
3
4
5
6
mtlist <- apply(mtcars, 1, as.list)
as_df(mtlist)

mtlist <- apply(mtcars, 1, as.list)
mtlist[[1]]$mpg <- list()
as_df(mtlist)

sckott/request documentation built on Aug. 11, 2018, 6:11 p.m.