Skip to content

Extract reference year for price indices from unit

Usage

extractReferenceYear(unit, var = NULL)

Arguments

unit

vector or string of units such as 'Index (2020 = 1)'

var

optional string of variable name to facilitate debugging

Value

vector or string of reference years such as '2020'

Author

Oliver Richters