Skip to contents

toolGetUnitDollar returns unit used for monetary values.

Usage

toolGetUnitDollar(returnOnlyBase = FALSE, inPPP = FALSE)

Arguments

returnOnlyBase

TRUE or FALSE (default). If true only the base year is returned (as string).

inPPP

TRUE or FALSE (default). If TRUE the the string ends in 'Int$PPP', instead of 'Int$MER'.

Value

A string with the monetary unit: 'constant 2017 US$MER'.

Examples

toolGetUnitDollar()
#> [1] "constant 2017 US$MER"
toolGetUnitDollar(inPPP = TRUE)
#> [1] "constant 2017 Int$PPP"
toolGetUnitDollar(returnOnlyBase = TRUE)
#> [1] "2017"