Skip to contents

Update scenarios groups

Usage

update_scenarios_groups(
  verbose = "all",
  scenarios_groups = load_scenarios_groups(..., cfg = cfg),
  crop_scenarios = get_xxx_scenarios(category = "crop", cfg = cfg),
  irrigation_scenarios = get_xxx_scenarios(category = "irrigation", cfg = cfg),
  write_results = cfg$data$write_results,
  path = getDataPath("Inputs/Scenarios/Scenarios_groups.csv", cfg = cfg),
  ...,
  cfg = loadConfig()
)

Arguments

verbose

logical Whether to print logs to the console.

scenarios_groups

data.frame Scenarios groups data frame. See load_scenarios_groups() for more details.

crop_scenarios

data.frame Crop scenarios data frame. See get_xxx_scenarios(category = "crop").

irrigation_scenarios

data.frame Irrigation scenarios data frame. See get_xxx_scenarios(category = "irrigation").

write_results

logical If TRUE writes the results in the data folder. See returned value of loadConfig.

path

character Path to the scenarios groups file.

...

Additional arguments passed to load_scenarios_groups().

cfg

a config object. Configuration to use. See loadConfig for details

Value

data.frame Updated scenarios groups data frame.