stageOutputs: stageOutputs function

Description Usage Arguments Details Value Examples

View source: R/ProductPipeline.R

Description

To create a row for a tibble for each cycle and each stage. The tibble will be kept as the last object of the records list

Usage

1
stageOutputs(id, f1, selCrit, stage, year, stageNames)

Arguments

id

Vector of the AlphaSimR ids of the individuals in the stage

f1

The AlphaSimR pop class with all the individuals

selCrit

Named vector of the selection criterion being used to advance individuals

stage

Integer stage (1 to bsp$nStages) being summarized

year

The current year of the breeding scheme

stageNames

Character vector of stage names

Details

Trying to provide some flexibility in what results AlphaSimHlpR generates from a given simulation.

Value

A tibble with whatever information from the data you want to store for analysis after simulation is done

Examples

1
records$stageOutputs <- records$stageOutputs %>% bind_rows(stageOutputs(id, records$F1, selCrit, stage, year, bsp$stageNames))

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