round_to_interval: Round to nearest interval

View source: R/exploration.R

round_to_intervalR Documentation

Round to nearest interval

Description

Round to nearest interval

Usage

round_to_interval(dbl, interval)

Arguments

dbl

number to round

interval

rounding interval

Value

numeric value

Examples

set.seed(1)
random_vct <- rnorm(10, 5, 5)
round_to_interval(random_vct, 2.5)


mcanigueral/evprof documentation built on June 2, 2025, 12:43 p.m.