How to perform anova between one specific col and multiple cols?

Viewed 29

I want to perform anova between one col and other col, and my script is like this

summarise(
 across(.col = where(is.numeric),
        .fn = aov(. ~ Species, data = iris   
 ))

And then I tried

list(
 across(.col = where(is.numeric),
        .fn = aov(. ~ Species, data = iris   
 ))

But still does not work.... Would someone kindly offer advice? Thanks.

0 Answers
Related