Learn R Programming

agricolae (version 1.1-5)

design.lsd: 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",first=FALSE)

Arguments

trt
Treatments
number
number of first plot
seed
seed
kinds
method for to randomize
first
TRUE or FALSE - randomize rep 1

Value

  • trtVector names of treatments
  • numberNumeric
  • seedNumeric
  • kindscharacter
  • firstLogic

Details

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

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

Run this code
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")

Run the code above in your browser using DataLab