[R] Problem with differences between S+ and R in parsing output tables with $
Ben Bolker
ben at zoo.ufl.edu
Mon Dec 9 20:43:03 CET 2002
On 9 Dec 2002, Douglas Bates wrote:
> Hmm - that's a peculiar way of trying to extract the information but
> if you really want to do it like that you should first use str() to
> determine the structure of the returned value. It turns out that the
> value is a list and the first component of the list is a data frame
> with one column labelled "Pr(>F)".
>
How would you normally go about extracting such information? Other than
doing it via summary(model(aov))[[1]]$"Pr(>F)"[1] [which is admittedly
pretty horrible], or extracting the raw information from the aov object
and computing the F-prob oneself, I can't see how to do it ...
Ben
More information about the R-help
mailing list