I would like to access some elements of an Anova summary in R. I've been trying things like in this question Access or parse elements in summary() in R.
When I convert the summary to a string it shows something like this:
str(summ)
List of 1
$ :Classes 'anova' and 'data.frame': 2 obs. of 5 variables:
..$ Df : num [1:2] 3 60
..$ Sum Sq : num [1:2] 0.457 2.647
..$ Mean Sq: num [1:2] 0.1523 0.0441
..$ F value: num [1:2] 3.45 NA
..$ Pr(>F) : num [1:2] 0.022 NA
- attr(*, "class")= chr [1:2] "summary.aov" "listof"
How can I access the F value?
I've been trying things like summ[c('F value')]
and I still can't get it to work.
Any help would be greatly appreciated!