Learn R Programming

evprof (version 1.1.2)

round_to_interval: Round to nearest interval

Description

Round to nearest interval

Usage

round_to_interval(dbl, interval)

Value

numeric value

Arguments

dbl

number to round

interval

rounding interval

Examples

Run this code
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