R/TukeyHSD.betadisper.R

`TukeyHSD.betadisper` <- function(x, which = "group", ordered = FALSE,
                                  conf.level = 0.95, ...) {
    df <- data.frame(distances = x$distances, group = x$group)
    mod.aov <- aov(distances ~ group, data = df)
    TukeyHSD(mod.aov, which = which, ordered = ordered,
             conf.level = conf.level, ...)
}

Try the vegan package in your browser

Any scripts or data that you put into this service are public.

vegan documentation built on May 2, 2019, 5:51 p.m.