Wrapper for the adonis2
function to allow ordinary formula input.
Examples
data(caldana)
(pr <- permanova(compounds ~ light * time, caldana))
#> Permutation test for adonis under reduced model
#> Permutation: free
#> Number of permutations: 999
#>
#> vegan::adonis2(formula = formula, data = data)
#> Df SumOfSqs R2 F Pr(>F)
#> Model 27 0.79189 0.35355 2.2687 0.001 ***
#> Residual 112 1.44793 0.64645
#> Total 139 2.23982 1.00000
#> ---
#> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1