pounds_format: Currency formatter: round to nearest penny and display pounds sign.
Description
The returned function will format a vector of values as
currency. Values are rounded to the nearest penny, and
pennies are displayed if any of the values has a non-zero
pennies and the largest value is less than
largest_with_penny which by default is 100000.
Usage
pounds_format(x, largest_with_penny = 1e+05)
pounds(x)
Arguments
largest_with_penny
the value that all values of
x must be less than in order for the cents to be
displayed
x
a numeric vector to format
Value
a function with single paramater x, a numeric vector, that
returns a character vector