latin: Latin Square

Description Usage Arguments Details Author(s) See Also Examples

View source: R/latin.R

Description

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

Usage

1
 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.

Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

See Also

design.lsd in R-package agricolae

Examples

1
2
latin( 5, random=FALSE )
latin( 6 ) # Default is random=TRUE

jmuOutlier documentation built on Aug. 6, 2019, 1:03 a.m.