round2 | R Documentation |
Round to the nearest number with the number of digits as indicated. NOTE:
Unlike the base round
function it rounds a 5 to the higher number,
rather than the nearest even number.
round2(x, digits = 0)
x |
number to be rounded |
digits |
number of digits to round to |
Number rounded to the number of digits
indicated
round2(2.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.