design_experiment: Provides experimental design for the different situations...

Description Usage Arguments Details Value Author(s)

View source: R/design_experiment.R

Description

design_experiment provides experimental design for the different situations corresponding to the choosen family of analysis

Usage

1
2
3
design_experiment(expe.type, location = "location", year = "2016",
  germplasm, controls, nb.controls.per.block, nb.blocks, nb.cols,
  return.format = "standard", allow_XXXX = TRUE)

Arguments

expe.type

The type of experiment to settle "satellite-farm", "regional-farm", "row-column", "fully-repicated", "IBD". See details for more information.

location

Name of the location.

year

Year of the experiment.

germplasm

Vector with the names of the germplasm.

controls

Vector with names of controls.

nb.controls.per.block

Number of controls per blocks.

nb.blocks

Number of blocks. For expe.type = "IBD", it corresponds to the number of locations.

nb.cols

Number of columns in the design. The number of rows is computed automaticaly.

return.format

"standard" or "shinemas". See details for more information.

allow_XXXX

TRUE or FALSE. Allow to have XXXX placed in stead of germplasm in order to fill the design.

Details

regarding return.format :

Note that an efficient R package to design experiment is DiGGer, see http://www.austatgen.org/software/ for mor details. Unfortunately, the lience of the package did not allow us to fork the code.

In this function, the code is based on the following algorithms:

See exampels in the book : here.

Value

The function returns a list with

Author(s)

Pierre Riviere


priviere/PPBstats documentation built on May 6, 2021, 1:20 a.m.