sketch {AgroR}R Documentation

Utils: Experimental sketch

Description

Experimental sketching function

Usage

sketch(trat, trat1 = NULL, r, design = "dic", pos = "line", ncol = NA)

Arguments

trat

Vector with factor A levels

trat1

Vector with levels of factor B (Set to NULL if not factorial or psub)

r

Number of repetitions

design

Experimental design ("dic", "dbc", "dql","psubdic","psubdbc","fat2dic","fat2dbc")

pos

Repeat position (line or column)

ncol

Default is NA. Warning!!! Use only in a completely randomized design

Value

Returns an experimental sketch according to the specified design.

Note

The sketches have only a rectangular shape, and the blocks (in the case of randomized blocks) can be in line or in a column. Mendiburu, F., & de Mendiburu, M. F. (2019). Package ‘agricolae’. R Package, Version, 1-2.

Author(s)

Gabriel Danilo Shimizu, shimizu@uel.br

Leandro Simoes Azeredo Goncalves

Rodrigo Yudi Palhaci Marubayashi

Examples

Trat=paste("Treatments",1:6)

#=============================
# Completely randomized design
#=============================
sketch(Trat,r=3)

#=============================
# Randomized block design
#=============================
sketch(Trat, r=3, design="dbc")

#=============================
# Completely randomized experiments in double factorial
#=============================
sketch(trat=c(1,2),
       trat1=c(1,2,3),
       design = "fat2dic",
       r=3)

[Package AgroR version 1.2.2 Index]