latin | R Documentation |
Latin square designs and its generalisations as an array
latin_square(n, randomise = TRUE)
latin_rectangle(nr, nc, nt, randomise = TRUE)
latin_array(dim, nt, randomise = TRUE)
n , nt |
The number of treatments |
randomise |
A logical value to indicate whether the treatment allocation should be randomised. The default value is |
nr |
The number of rows |
nc |
The number of columns |
dim |
A vector of integers to indicate the number of elements in each dimension. |
latin_square()
: Latin square design
latin_rectangle()
: Like a Latin square design but allow different number of rows and columns
latin_array()
: Returns an array where it stitches up multiple Latin square/rectangle design
latin_square(n = 3)
latin_rectangle(3, 3, 3)
latin_array(c(3, 3, 3), 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.