tidysims: tidysims function

Description Usage Arguments Value Examples

View source: R/TidyingFunctions.R

Description

function to create a tidy tibble from a list of runBreedingScheme simulations

Usage

1
tidysims(sims)

Arguments

sims

a list of AlphaSimHlpR sims (result of runBreedingScheme)

Value

a tidy tibble with one row per simulation, cols: records (tibble of all phenotypic records with indicator added for "year" and "stageName"), simulatedpop (the pop-class object from the sim), bsp and SP for the sim.

Examples

1
2
3
4
5
6
sims <- map(1:2,~runBreedingScheme(replication = .,nCycles = 7,
                                initializeFunc = initFuncADChk,
                                productPipeline = prodPipeFncChk,
                                populationImprovement = popImprov1Cyc,
                                bsp = bsp))
sims <- tidysims(sims)

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