[R] List to data frame

Johannes Graumann johannes_graumann at web.de
Mon Jul 26 16:46:07 CEST 2010


Hi,

Any ideas on how to efficiently convert

> list(c(1,2,3),c(4,5,6))

to 

> data.frame(OriginalListIndex=c(1,1,1,2,2,2),Item=c(1,2,3,4,5,6))

Thanks for any hints,

Joh



More information about the R-help mailing list