roundto.multiple | R Documentation |
x
to the nearest multiple of N
Rounds x
to the nearest multiple of N
roundto.multiple(x, N, adjust = "closest")
x |
numeric or integer |
N |
numeric or integer |
adjust |
character:
'closest': Returns the closest multiple of |
A numeric
roundto.multiple(345.45, 1)
[1] 345
roundto.multiple(345.45, 7)
[1] 343
roundto.multiple(345.45, 7.2)/7.2
[1] 48
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.