f | R Documentation |
Format a value in a nice way, including rounding and trailing zeroes
f(x, dec.points = 0, ...)
x |
The value to format |
dec.points |
The number of decimal points |
... |
Arguments passed to |
Uses logical option french
to determine what type of marks to use for
decimal point and thousands separator. If french
is not set, will use
option OutDec
to determine this. The value will be rounded to the number
of decimal points specified, and will contain trailing zeroes if
necessary so that the string has exactly the correct number of decimal
points.
A string representing the formatted value.
f(10000)
f(999999.1, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.