cr.f: Create design for a factorial experiment

View source: R/cr_f.R

cr.fR Documentation

Create design for a factorial experiment

Description

This function creates the fieldbook and fieldplan for a factorial experiment following a CRD or a RCBD.

Usage

cr.f(
  fnames,
  flevels,
  design = c("crd", "rcbd"),
  nrep,
  nc = NULL,
  serpentine = c("yes", "no"),
  alongside = c("no", "rows", "columns")
)

Arguments

fnames

Factors' names.

flevels

A list with the factors' levels.

design

The design, crd or rcbd.

nrep

Number of replications or blocks.

nc

Number of available columns on the field.

serpentine

"yes" or "no", default "yes".

alongside

"no" for independent blocks, or "rows" or "columns" if blocks are together alongside rows or columns.

Value

It returns the fieldbook and fieldplan.

Author(s)

Raul Eyzaguirre.

Examples

A <- paste0("a", 1:5)
B <- paste0("b", 1:3)
C <- paste0("c", 1:2)
cr.f(c("A", "B", "C"), list(A, B, C), "rcbd", 3, 12)

reyzaguirre/st4gi documentation built on April 14, 2024, 11:46 p.m.