powered by
Round to nearest interval
round_to_interval(dbl, interval)
numeric value
number to round
rounding interval
set.seed(1) random_vct <- rnorm(10, 5, 5) round_to_interval(random_vct, 2.5)
Run the code above in your browser using DataLab