Re: [R] Remove names and more from list with capture.output()

2011-11-15 Thread David Winsemius
On Nov 15, 2011, at 2:43 PM, Sverre Stausland wrote: Thanks David - this is pretty close to what I am looking for. However, the output of vec[2] now includes the row number [1] and quotations marks at the endpoints of the row. Is there an easy way to exclude those? The usual method is to use

Re: [R] Remove names and more from list with capture.output()

2011-11-15 Thread Sverre Stausland
Thanks David - this is pretty close to what I am looking for. However, the output of vec[2] now includes the row number [1] and quotations marks at the endpoints of the row. Is there an easy way to exclude those? Thanks Sverre On Tue, Nov 15, 2011 at 8:11 AM, David Winsemius wrote: > > On Nov 14

Re: [R] Remove names and more from list with capture.output()

2011-11-15 Thread David Winsemius
On Nov 14, 2011, at 11:49 PM, Sverre Stausland wrote: Hi R users, I end up with a list object after running an anova: lm(speed ~ 1 + dist + speed:dist, data = cars) -> Int lm(speed ~ 1 + dist, data = cars) -> NoInt anova(Int, NoInt) -> test test <- test[c("Df", "F", "Pr(>F)")][2,] is.list(te

Re: [R] Remove names and more from list with capture.output()

2011-11-14 Thread R. Michael Weylandt
The easiest thing is almost certainly going to be to redefine print.aov as desired. You can get it at by typing stats:::print.aov. Copy the code edit and then reassign it to print.aov in the global environment and voila! Michael On Mon, Nov 14, 2011 at 11:49 PM, Sverre Stausland wrote: > Hi R us

[R] Remove names and more from list with capture.output()

2011-11-14 Thread Sverre Stausland
Hi R users, I end up with a list object after running an anova: > lm(speed ~ 1 + dist + speed:dist, data = cars) -> Int > lm(speed ~ 1 + dist, data = cars) -> NoInt > anova(Int, NoInt) -> test > test <- test[c("Df", "F", "Pr(>F)")][2,] > is.list(test) [1] TRUE > test Df FPr(>F) 2 -1 18