Description Usage Arguments Value Note Examples
Function to drive large numbers of iteration of trademod
1 2 | tradeoff_batch(parms, input_key = "ZA", todisk = FALSE, silent = FALSE,
ncl = 4)
|
parms |
Matrix or data.frame providing input parameters permutations |
input_key |
Two letter location code indicating input data to load. |
todisk |
TRUE, in which case output data.table is written to disk |
silent |
Silent or verbose model. TRUE (default) or FALSE |
List of tradeoff_mod impact data.frames and conversion data.table if todisk is FALSE
This is one place where parallelizing could be useful, replacing for loop with foreach.
1 2 3 4 5 6 7 8 | targlist <- list(c("maize" = 2, "soy" = 2))
#targlist <- list(c("maize" = 2))
cpmlist <- list(c(1, 1))
cblist <- pareto_steps(c("Y", "C"), step = 0.25)
parms <- batch_params(targlist = targlist, cblist = cblist,
currprodmodlist = list(c(1, 1)))
batch_test <- tradeoff_batch(parms = parms, input_key = "ZA", todisk = FALSE,
silent = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.