Creates all the possible pairwise contrasts between the unique elements of a vector.

createPairwiseContrasts(x, sep = "-", reverseLevs = TRUE)

Arguments

x

Vector to be combined in pairs.

sep

Separator of resulting contrasts.

reverseLevs

Reverse levels before contrasts? Defaults to TRUE

Value

A character vector containing all the possible pairwise contrasts.