selCritIID: selCritIID function

Description Usage Arguments Details Value Examples

View source: R/AnalysisFunctions.R

Description

function to select parents among individuals with phenotypes, assuming individual effects are IID

Usage

1
selCritIID(records, candidates, bsp, SP)

Arguments

records

The breeding program records object. See fillPipeline for details

candidates

Character vector of ids of the candidates to be parents

bsp

The breeding scheme parameter list

SP

The AlphaSimR SimParam object (not used, here for uniformity)

Details

Accesses all individuals in records to pick the highest among candidates. If candidates do not have records, a random sample is returned

Value

An IID BLUP of the trait of the candidates

Examples

1
2
3
allPop <- mergePops(records[[2]])
candidates <- allPop@id
parents <- allPop[selCritIID(records, candidates, bsp, SP)]

jeanlucj/AlfSimHlpR documentation built on Nov. 7, 2021, 5:10 p.m.