Learn R Programming

gms (version 0.31.2)

setScenario: setScenario

Description

setScenario is adapting a given config to a predefined scenario, meaning that all settings which are fixed for the given scenario are written to the config. Settings not defined by the scenario remain unchanged.

Usage

setScenario(cfg, scenario, scenario_config = "config/scenario_config.csv")

Value

The updated config as a config list ready for further usage.

Arguments

cfg

Input config which should be adapted to the given scenario

scenario

name of scenario (e.g. "SSP2"). Can also be a vector of scenarios. In this case scenario settings are applied in the given order

scenario_config

The path where the scenario config table is stored.

Author

Jan Philipp Dietrich, Anastasis Giannousakis

See Also

check_config,getModules