Skip to contents

Return a commentary snippet for any number value. Formats the number with comma separation and provides simple up/down commentary

Usage

single_number(x, description = "up", unchanged_limit = 100, ...)

Arguments

x

a numeric value.

description

code of descriptive words used in commentary. Defaults to "up"; up/down/unchanged.

unchanged_limit

numeric, the value below which you consider the parameter to not represent a change in either direction. Defaults to 100.

...

additional arguments to pass to the scales::comma function

Value

Returns a brief commentary (including the figure for increases or decreases) as a string