pounds_format | R Documentation |
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.
pounds_format(x, largest_with_penny = 1e+05)
pounds(x)
x |
a numeric vector to format |
largest_with_penny |
the value that all values of |
Based heavily on the scales work by Hadley
a function with single paramater x, a numeric vector, that returns a character vector
Other helper:
CJ.dt()
,
convertToXML()
,
generatePDF()
,
sanitise()
,
thousands_format()
,
wordwrap()
pounds_format()(c(100, 0.23, 1.456565, 2e3))
pounds_format()(c(1:10 * 10))
pounds(c(100, 0.23, 1.456565, 2e3))
pounds(c(1:10 * 10))
pounds(10^(1:8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.