round_to_multiple.Rd
Round to a multiple of any number (e.g. round to the nearest 5, 10, 100)
round_to_multiple(x, multiple)
value to be rounded
accuracy to round to. If NULL, x will be returned unrounded.
# Uses "round-to-even" strategy round_to_multiple(12.5, 5) #> [1] 10 round_to_multiple(17.5, 5) #> [1] 20