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

stageOutputs(id, f1, selCrit, stage, year, bsp)

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

bsp

A list of breeding scheme parameters

Value

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

Details

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

Examples

records$stageOutputs <- records$stageOutputs %>% bind_rows(stageOutputs(id, records$F1, selCrit, stage, year, bsp))
#> Error in list2(...): object 'records' not found