design.lsd {agricolae}R Documentation

Latin Square Design

Description

It generates Latin Square Design. "Random" uses the methods of number generation in R. The seed is by set.seed(seed, kinds).

Usage

design.lsd(trt, number = 1, seed = 0, kinds = "Super-Duper")

Arguments

trt Treatments
number number of first plot
seed seed
kinds method for to randomize

Details

kinds <- c("Wichmann-Hill", "Marsaglia-Multicarry", "Super-Duper", "Mersenne-Twister", "Knuth-TAOCP", "user-supplied", "Knuth-TAOCP-2002", "default" )

Value

trt Vector names of treatments
number Numeric
seed Numeric

Author(s)

Felipe de Mendiburu

References

Introduction to Experimental Statistics. Ching Chun Li. McGraw-Hill Book Company, INC, New. York, 1969

See Also

design.crd, design.rcbd, random.ab, fact.nk

Examples

library(agricolae)
varieties<-c("perricholi","yungay","maria bonita","tomasa")
lsd <-design.lsd(varieties,number=1001,seed=23)
lsd # print field book.
plots <-as.numeric(lsd[,1])
trt <-as.character(lsd[,4])
dim(plots)<-c(4,4)
dim(trt) <-c(4,4)
print(t(plots))
print(t(trt))
# Write on hard disk.
# write.table(lsd,"lsd.txt", row.names=FALSE, sep="\t")
# file.show("lsd.txt")


[Package agricolae version 1.0-6 Index]