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)Tibble with text descriptions of model time periods to be replaced with numerical values.
Modified tibble with 'numerical' values instead of text.
Text strings include start-year, final-calibration-year, final-historical-year,
initial-future-year, initial-nonhistorical-year, and end-year.
The returned 'numerical' values are actually characters; this helper function doesn't touch column types.