Re: [R] Storing data from a test as a vector or matrix

From: wwreith <reith_william_at_bah.com>
Date: Wed, 04 May 2011 08:31:47 -0700 (PDT)

SA gives the output:

Response IPS1 :

                Df Sum Sq Mean Sq F value   Pr(>F)    
as.factor(WSD)   3 3.3136 1.10455  23.047 5.19e-12 ***
Residuals      129 6.1823 0.04793                     
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 
.
.
.
There are 11 more just like this output. Just increment IPS1 to IPS2, etc.


Goal: save "3 3.3136 1.10455  23.047 5.19e-12" as a vector.


Str(SA) gives the output:

str(SA)					

> str(SA)
List of 12 " $ Response IPS1 :Classes 'anova' and 'data.frame': 2 obs. of 5 variables:" ..$ Df : num [1:2] 3 129 ..$ Sum Sq : num [1:2] 3.31 6.18 ..$ Mean Sq: num [1:2] 1.1045 0.0479 ..$ F value: num [1:2] 23 NA ..$ Pr(>F) : num [1:2] 5.19e-12 NA There are several more but they are just repeats of this one only with IPS2, IPS3,...
The command:
> SA1<-as.vector(SA$"Reponse IPS1")
Returns
>NULL
As do several variations I have tried. Any ideas. -- View this message in context: http://r.789695.n4.nabble.com/Storing-data-from-a-test-as-a-vector-or-matrix-tp3495626p3495950.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.
Received on Thu 05 May 2011 - 06:25:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive