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, ...)
}
pattakosn/Rworkshop documentation built on May 24, 2019, 8:22 p.m.