Creates all the possible pairwise contrasts between the unique elements of a vector.
createPairwiseContrasts(x, sep = "-", reverseLevs = TRUE)
x | Vector to be combined in pairs. |
---|---|
sep | Separator of resulting contrasts. |
reverseLevs | Reverse levels before contrasts? Defaults to TRUE |
A character vector containing all the possible pairwise contrasts.