This function creates a pairwise comparison matrix for n groups. All possible pairwise combinations are created, with rows in the matrix equal to the desired comparison.

1 | ```
makeCompMat(ng)
``` |

`ng` |
A single number indicating the total number of unique groups |

Returns a matrix with two columns and ng choose 2 rows.

`PermuteLDA`

1 2 3 4 5 6 7 8 | ```
makeCompMat(3)
makeCompMat(4)
data(Groups)
NGroups<-length(unique(Groups))
makeCompMat(NGroups)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.