num_digits | R Documentation |
Formats numbers with a prespecified number of digits after the decimal point.
num_digits(x, digits, format = "f", ...)
x |
a numeric vector |
digits |
an integer to indicate the number of digits to show. |
format |
format type passed to |
... |
additional parameters passed to |
Other numeric vectors:
num_accounting()
,
num_comma()
,
num_currency()
,
num_percent()
,
num_scientific()
num_digits(pi, 2)
num_digits(123.45678, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.