Learn R Programming

supernova (version 3.0.0)

level_pairs: Get all pairs for a given vector

Description

The output of this function should match the pairs you get when you run TukeyHSD.

Usage

level_pairs(levels)

Value

A tibble with two columns, group 1 and group 2, where each row is a unique pair.

Arguments

levels

The vector to get pairs for. It is called levels because it was written for the purpose of comparing levels of a factor to one another with multiple comparisons.