set_years: set_years

View source: R/module-helpers.R

set_yearsR Documentation

set_years

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

set_years(data)

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.


bpbond/gcamdata documentation built on March 22, 2023, 4:52 a.m.