Generate phenotypes - Combine genetic values and plot errors
Source:R/make_phenotypes.R
make_phenotypes.Rd
Creates a data frame of phenotypes by combining genetic values with plot errors generated with the function field_trial_error. Requires genetic values generated with the functions compsym_asr_output or unstr_asr_output, or any data frame matching the description below.
Arguments
- gv.df
A data frame of genetic values. Must contain the columns 'env', 'rep', genotype 'id', and the genetic values for each trait.
- error.df
A data frame of plot errors. Must contain the columns 'env', 'block', 'col', 'row', and the plot errors for each trait.
- randomise
When
TRUE
(default isFALSE
), genotypes are randomly allocated to plots according to a randomized complete block design (RCBD).
Note: Other experimental designs are being implemented and should be generated externally.- return.effects
When
TRUE
(default isFALSE
), a list is returned with additional entries containing the genetic values and plot errors for each trait.