[R] how to convert a list into a data frame.

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Wed Sep 11 16:03:11 CEST 2013


But a data.frame is a special type of list, so you could both be right. The best way to communicate clearly about these questions is to provide reproducible example R code.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

PIKAL Petr <petr.pikal at precheza.cz> wrote:
>How did you read it? Normally data from Excel are in data.frame
>
>Petr
>
>
>> -----Original Message-----
>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
>> project.org] On Behalf Of Charles Thuo
>> Sent: Wednesday, September 11, 2013 3:22 PM
>> To: r-help at r-project.org
>> Subject: [R] how to convert a list into a data frame.
>> 
>> After reading a data set from excel into R it is of the type list.
>How
>> can such a list be converted into a data frame so as to attach the
>> columns.
>> 
>> Charles.
>> 
>> 	[[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> R-help at r-project.org mailing list
>> 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.
>
>______________________________________________
>R-help at r-project.org mailing list
>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