latinSquare | R Documentation |
Returns a latin square where each index 1:order occurs in each row as well as in each column.
latinSquare(order, seed = NULL)
order |
An integer value of 2 or higher, setting the size of the latin square. |
seed |
Optional seed for the random number generator |
If you want the same latin square repeatedly, set the seed argument.
A matrix of size order x order
latinSquare(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.