get_capmod_res: Convert original CAPRI results into R format: gdx -> tbl_df...

Description Usage Arguments

View source: R/load_gdxfiles.r

Description

Convert original CAPRI results into R format: gdx –> tbl_df –> RData Results are only saved to the out_folder but not loaded into memory You have to load() the RData file first before you can use it in R, but this is usually done by the extraction scripts and not manually. See e.g. extract_gui_table().

Usage

1
2
3
4
5
6
7
get_capmod_res(
  scenario,
  in_folder,
  out_folder,
  gamspath = "/opt/GAMS",
  autoload = FALSE
)

Arguments

scenario

Scenario file name. The usual structure applies: res_ + regional break-down(0,2,999) + _ + baseyear + simulation year

in_folder

Folder containing result file. Usually 'results/capmod' in the CAPRI installation

out_folder

Folder for the converted formats

gamspath

Path to gams installation. GAMS libraries are needed for the gdxrrw package


trialsolution/caprir documentation built on Dec. 5, 2019, 8:54 a.m.