[R] convert list int data frame

Ivan Calandra ivan.calandra at univ-reims.fr
Mon Sep 14 14:58:10 CEST 2015

Hi Luigi,

It depends on how you want to put the different elements of my.list into 
a data.frame. Basically, data.frames are lists, so doing
is straigthforward.


Ivan Calandra, PhD
University of Reims Champagne-Ardenne
CREA - 2 esplanade Roland Garros
51100 Reims, France
+33(0)3 26 77 36 89
ivan.calandra at univ-reims.fr

Le 14/09/15 13:07, Luigi Marongiu a écrit :
> Dear all,
> i would like to convert a list onto a data frame object. Is there an
> easy way of doing it? I know I should use unlist() but I am not sure
> about the implementation for the addition of the row numbers; or I
> could extract one member at the time with something like x <-
> my.list[[i]] but then how to append the results to an object?
> Thank you.
> Best regards
> Luigi
> my.list <- replicate(5, matrix(1:(6*27), ncol = 6, byrow = TRUE), FALSE)
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list