Learn R Programming

jmuOutlier (version 2.2)

latin: Latin Square

Description

Generates a Latin square, which is either standard or based on randomized rows and columns.

Usage

latin(n, random = TRUE)

Arguments

n

An integer between 2 and 26, inclusively, denoting the number of treatment groups.

random

Logical; if TRUE (default), a Latin square with randomized rows and columns is produced. If FALSE, a standard non-random Latin square is produced.

Details

The Latin square is produced in matrix format with treatments labeled as A, B, C, etc.

See Also

design.lsd in R-package agricolae

Examples

Run this code
# NOT RUN {
latin( 5, random=FALSE )
latin( 6 ) # Default is random=TRUE
# }

Run the code above in your browser using DataLab