Description Usage Arguments Value Author(s) References Examples
round2
- By default R's round
function uses the 'round half to
even' method. This function (taken from https://stackoverflow.com/a/12688836/1000343)
rounds half up.
round_any
- This tooling lets you round to fractional values, not
just whole numbers. Code adapted from https://stackoverflow.com/a/8665247/1000343.
1 2 3 |
x |
A vector of digits. |
digits |
The number of decimal places to round to. |
accuracy |
Number to round to. |
f |
A function to round (e.g., |
... |
ignored. |
round2
- Returns numeric vector half rounded up.
round_any
- Returns a numeric vector or rounded fractional values.
Kohske Takahashi
https://stackoverflow.com/a/12688836/1000343
https://stackoverflow.com/a/8665247/1000343
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.