| latin_square | R Documentation |
Generates a Latin Square design for experimental studies.
latin_square(treatments, randomize = TRUE, seed = NULL)
treatments |
Character vector of treatment labels. |
randomize |
Logical. Should rows, columns and treatments be randomized? Default is TRUE. |
seed |
Optional random seed. |
A matrix representing a Latin square.
latin_square(
treatments = LETTERS[1:4],
seed = 123
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.