Round | R Documentation |
Shorter wrapper for format(x, digits = n, nsmall = n)
Round(x, n)
x |
numeric to be formatted |
n |
number of digits for nsmall |
should not be used unless digits after a decimal are needed.
Note for numbers with leading zeros (ie. 0.0349) you will get one more
decimal place than n. (ie. Round(O.0349, 2)
will return
0.035
)
a character vector of same length of x converted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.