productPipeline: productPipeline function

Description Usage Arguments Details Value Examples

View source: R/ProductPipeline.R

Description

function to advance a simulated breeding product pipeline forward by one generation. See Gaynor et al. 2017 for the general idea.

Usage

1
productPipeline(records, bsp, SP)

Arguments

records

The breeding program records object. See fillPipeline for details

bsp

A list of breeding scheme parameters

SP

the AlphaSimR SimParam object

Details

The breeding program product pipeline will have been set by initializeFunc. This function moves the breeding program along by one generation and saves all the resulting phenotypes to the records object.

Value

A records object that has new records created by advancing by a generation

Examples

1
2
3
4
5
6
7
8
bsp <- specifyPipeline()
bsp <- specifyPopulation(bsp)
initList <- initializeFunc(bsp)
SP <- initList$SP
bsp <- initList$bsp
records <- initList$records
records <- productPipeline(records, bsp, SP)
records <- popImprov1(records, bsp, SP)

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