Return a commentary snippet for one or more decimal values. Formats the numbers as percentage points and provides simple up/down commentary
pp_change.Rd
Return a commentary snippet for one or more decimal values. Formats the numbers as percentage points and provides simple up/down commentary
Arguments
- x
a vector of percentage values, as a decimal E.g. 10pp would be passed as 0.1.
- description
code of descriptive words used in commentary. Defaults to "up"; up/down/unchanged.
- abbr
logical, whether you would like the units abbreviated to pp. Defaults to TRUE.
- unchanged_limit
numeric, the value below which you consider the parameter to not represent a change in either direction. Defaults to 0.01 (equal to 1pp).
- ...
additional arguments to pass to the scales::percent function