Dear Waverley,
Try

# Data
x=rnorm(10)
y=rep(1:2,5)
aov.ex = aov(x~y)
tail(unlist(summary(aov.ex)),2)

# or

anova(lm(x~y))$"Pr(>F)"


HTH,

Jorge



On Tue, Oct 28, 2008 at 8:48 PM, Waverley <waverley.paloalto@gmail.com>wrote:

> Hi,
>
> I have a question of aov.  e.g.
>
> aov.ex = aov(x~y)
> summary(aov.ex)
>
> The aov summary will print to the screen.  How can I extract the aov
> result, in particular the values of Pr(>F) and F value into a vector
> so that I can use them for other use?
>
> Thanks.
>
> --
> Waverley @ Palo Alto
>
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]

