roundm | R Documentation |
This function rounds numbers in the mathematical sense,
as opposed to the base R
function round()
that rounds 'to the even digit'.
roundm(x, decimals = 0)
x |
Vector of numerical values to round. |
decimals |
Integer indicating the number of decimal places to be used. |
A vector containing the entries of x
, rounded to decimals
decimals.
roundm(2.25, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.