set_years: set_years

Description Usage Arguments Details Value Note

View source: R/module-helpers.R

Description

Replace text descriptions of years in exogenous input CSVs with numerical values. This allows model time periods to be modified without requiring similar modifications in many input CSV tables.

Usage

1

Arguments

data

Tibble with text descriptions of model time periods to be replaced with numerical values.

Details

Text strings include start-year, final-calibration-year, final-historical-year, initial-future-year, initial-nonhistorical-year, and end-year.

Value

Modified tibble with 'numerical' values instead of text.

Note

The returned 'numerical' values are actually characters; this helper function doesn't touch column types.


rohmin9122/gcam-korea-release documentation built on Nov. 26, 2020, 8:11 a.m.