[R] convert a list to a data frame
Sam Steingold
sds at gnu.org
Wed Apr 4 18:34:57 CEST 2012
sorry, google does give a good start.
> Google on "R convert list to data frame".
as.data.frame(do.call("rbind",a))
returns an object which I don't understand.
> summary(f)
name.Length name.Class name.Mode status
1 -none- character Length:4445
1 -none- character Class :character
1 -none- character Mode :character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
1 -none- character
vectors.Length vectors.Class vectors.Mode
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
0 -none- list
[ reached getOption("max.print") -- omitted 4412 rows ]]
this is not a data frame I am used to.
why do f$v and f$ve return the same as f$vectors?!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://camera.org http://openvotingconsortium.org
http://dhimmi.com http://iris.org.il http://thereligionofpeace.com
There are two ways to write error-free programs; only the third one works.
More information about the R-help
mailing list