Description Usage Arguments Details Value See Also Examples
Generate latin squares, either randomly or ordered
1 |
n |
integer; number of unique values (aka. symbols) |
random |
logical; should the square be generated randomly? |
reduce |
logical; should the square be in reduced form? |
Computation time increses rapidly with n
. On my computer generating a
random square with n=12
takes about ten minutes, marking the upper
limit of practicability, or even stretching it a little.
A latin square in reduced
form will have elements in the first row
and the first column in a sorted order. By setting reduced=TRUE
the first
row and the first column will always be 1:n
.
A square integer matrix of size n^2
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.