to.df | R Documentation |
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.
to.df(x)
x |
the result of the rbind call. |
a data.frame
x <- rbind(list(a=1,b="foo"),list(a=2,b="bar"))
y <- to.df(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.