design.mat | R Documentation |
Generate the design matrix from the fieldbook generated by an experimental plan or a dataframe for analysis.
design.mat(book, locations)
book |
data frame or matrix, field book |
locations |
numeric, column position of the field book |
X is matrix design.
Felipe de Mendiburu
design.ab
, design.alpha
,design.bib
,
design.crd
, design.cyclic
, design.split
,
design.graeco
, design.lattice
, design.lsd
,
design.rcbd
, design.strip
, design.dau
# dataframe: data analysis
library(agricolae)
data(sweetpotato)
X<-design.mat(sweetpotato,1)
print(X)
# fieldbook: RCBD design
trt <- LETTERS[1:4]
r<-3
plan<-design.rcbd(trt,r,seed=11)
X<-design.mat(plan$book,2:3)
print(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.