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.

set_years(data)

Arguments

data

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

Value

Modified tibble with 'numerical' values instead of text.

Details

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

Note

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