Learn R Programming

broom (version 0.3.4)

tidy.TukeyHSD: tidy a TukeyHSD object

Description

Returns a data.frame with one row for each pairwise comparison

Usage

## S3 method for class 'TukeyHSD':
tidy(x, ...)

Arguments

x
object of class "TukeyHSD"
...
additional arguments (not used)

Value

  • A data.frame with one row per comparison, containing columns
  • comparisonLevels being compared, separated by -
  • estimateEstimate of difference
  • conf.lowLow end of confidence interval of difference
  • conf.highHigh end of confidence interval of difference
  • adj.p.valueP-value adjusted for multiple comparisons

See Also

TukeyHSD

Examples

Run this code
fm1 <- aov(breaks ~ wool + tension, data = warpbreaks)
thsd <- TukeyHSD(fm1, "tension", ordered = TRUE)
tidy(thsd)

Run the code above in your browser using DataLab