to.df: Convert row-bound lists to data.frame

View source: R/yogitools.R

to.dfR Documentation

Convert row-bound lists to data.frame

Description

Running rbind on lists with the same element names yields a datastructure very similar to a data.frame, but does not provide the same full functionality. This function converts such objects to a real dataframe.

Usage

to.df(x)

Arguments

x

the result of the rbind call.

Value

a data.frame

Examples

x <- rbind(list(a=1,b="foo"),list(a=2,b="bar"))
y <- to.df(x)

jweile/yogitools documentation built on May 11, 2023, 7:42 p.m.