Description Usage Arguments Value Author(s) References Examples
A Latin square is a matrix of n * n elements. Precisely, a Latin square consists of n sets of the numbers 1 to n arranged in such a way to avoid orthogonality (a row or a column will not contain the same number twice).
1 |
size |
An integer value for the size of the design. |
rep |
An integer value for repetition design. |
seed |
A value to generate a random distribution. The argument seed is useful because it assures the same distribution in case of replication. |
id |
A logical value indicating whether an id should be attributed for each element of the matrix. |
A Latin square object with class matrix
.
Daniel Marcelino
Tarry, G. (1900) Le probleme de 36 officiers. Compte Rendu de l'Assoc. Francais Avanc. Sci. Naturel, 1, 122–123.
Tarry, G. (1901) Le probleme de 36 officiers. Compte Rendu de l'Assoc. Francais Avanc. Sci. Naturel, 2, 170–203.
1 | lsq(4, 2, seed = 51)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.