Description Usage Arguments Value Author(s) Examples
View source: R/generate_scenario_info.R
This function takes the default SCENARIO.INFO
object and updates it based on
user specified arguments. Some updates (e.g., changing from "Reference" to "Hindcast" scenario
type) will automatically update the scenario name and file name.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | update_scen_info(
aName = NULL,
aScenarioType = DEFAULT.SCENARIO.TYPE,
aExpectationType = "Perfect",
aLinearYears = NULL,
aLinearYears1 = NULL,
aLinearYears2 = NULL,
aLinearYears3 = NULL,
aLaggedShareOld = NULL,
aLaggedShareOld1 = NULL,
aLaggedShareOld2 = NULL,
aLaggedShareOld3 = NULL,
aUseZeroCost = FALSE,
aCalibrateShareWt = TRUE,
aIncludeSubsidies = FALSE,
aShareWts = NULL
)
|
aName |
New scenario name (default will generate this from other info) |
aScenarioType |
New scenario type (default = |
aExpectationType |
New expectation type (default = "Perfect") |
aLinearYears |
New linear years (default = NULL) |
aLinearYears1 |
New linear years for crop group 1 (see constants.R) (default = NULL) |
aLinearYears2 |
New linear years for crop group 2 (see constants.R) (default = NULL) |
aLinearYears3 |
New linear years for crop group 3 (see constants.R) (default = NULL) |
aLaggedShareOld |
New lagged share old (default = NULL) |
aLaggedShareOld1 |
New lagged share old (group 1) (see constants.R) (default = NULL) |
aLaggedShareOld2 |
New lagged share old (group 2) (see constants.R) (default = NULL) |
aLaggedShareOld3 |
New lagged share old (group 3) (see constants.R) (default = NULL) |
aUseZeroCost |
New cost assumption (default = FALSE) |
aCalibrateShareWt |
Flag indicating share weights should be calibrated |
aIncludeSubsidies |
Flag indicating subsidies should be added to profit |
aShareWts |
Vector of share weights |
Updated scenario info object
KVC November 2018
1 2 | update_scen_info(aCalibrateShareWt = FALSE, aShareWts=get_saved_share_weights())
update_scen_info(aScenarioType = "Hindcast")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.