View source: R/CostOptimization.R
budgetToScheme | R Documentation |
Given breeding scheme budget percentages, return numbers of crosses and plots The percentages are for PIC and for allocation to each VDP stage Rules: 1. For PIC, nBreedingProg has to be at least minNBreedingProg 2. Each stage has to have fewer entries than the previous stage If the percentages break the rules budgetToScheme returns a failure The total budget allowed is given by bsd$budget minus location maintenance
budgetToScheme(percentages, bsd)
percentages |
Numeric vector with nStages+1 cells which are alloction for PIC and for each stage. |
bsd |
List of breeding scheme data |
Call this function after running specifyCosts.
A revised bsd with the sizes of the stages fitting the percentages
Assume stages of CET, PYT, UYT, so percentRanges needs 4 rows
The first stage needs more budget because of genotyping and development costs
percentages <- c(0.50, 0.30, 0.10, 0.10)
bsd <- budgetToScheme(percentages=percentages, bsd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.