Description Usage Arguments Examples
roundWZero
rounds the values in its first argument to the specified number of decimal places (default 0).
1 | roundWZero(x, digits = 0)
|
x |
a numeric vector. |
digits |
integer indicating the number of decimal places |
1 2 | roundWZero(c(100,10,1,0.1,0.01,0.001,0.0001),digits = 1)
roundWZero(c(100,10,1,0.1,0.01,0.001,0.0001),digits = -1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.