[R] Storing CA Results to a Data Frame?

2010-09-26 Thread Vik Rubenfeld
I am successfully performing a correspondence analysis using the commands: NonLuxury - read.table(/Users/myUserName/Desktop/nonLuxury.data.txt) ca(NonLuxury) I would like to store the results to a data frame so that I can write them to disk using write.table. I have tried

[R] Storing CA Results to a Data Frame?

2010-09-26 Thread Vik Rubenfeld
[Sorry- somehow the first time I posted this it got attached to another thread -Vik] I am successfully performing a correspondence analysis using the commands: NonLuxury - read.table(/Users/myUserName/Desktop/nonLuxury.data.txt) ca(NonLuxury) I would like to store the

Re: [R] Storing CA Results to a Data Frame?

2010-09-26 Thread Ista Zahn
Hi Vik, I suggest reading through some of the introductory documentation. R has several classes of objects, including matrix, list, data.frame etc. and a basic understanding of what these are is essential for effectively using R. An essential function is str() which shows you the structure of an

Re: [R] Storing CA Results to a Data Frame?

2010-09-26 Thread Vik Rubenfeld
Thanks very much for this great info, Ista. Best, -Vik On Sep 26, 2010, at 12:10 PM, Ista Zahn wrote: Hi Vik, I suggest reading through some of the introductory documentation. R has several classes of objects, including matrix, list, data.frame etc. and a basic understanding of what these

Re: [R] Storing CA Results to a Data Frame?

2010-09-26 Thread Remko Duursma
Please provide a reproducible example, like: library(ca) data(author) p - ca(author) # now look at this: str(p) to find that this object of class 'ca' has lots of different results in it - it is up to you to decide which ones you make into a dataframe. cheers, Remko -- View this message