selCritGRM.Rd
function to select parents among individuals with phenotypes, assuming individual effects covary according to a GRM
selCritGRM(records, candidates, bsp, SP)
records | The breeding program |
---|---|
candidates | Character vector of ids of the candidates to be parents |
bsp | The breeding scheme parameter list |
SP | The AlphaSimR SimParam object (needed to pull SNPs) |
Character vector of the ids of the selected individuals
Accesses all individuals in records
to pick the highest ones
candidates <- records[[1]][[1]]@id#> Error in eval(expr, envir, enclos): object 'records' not foundparents <- records[[1]][[1]][selCritGRM(records, candidates, bsp, SP)]#> Error in eval(expr, envir, enclos): object 'records' not found