Learn R Programming

ggstats (version 0.9.0)

round_any: Round to multiple of any number.

Description

Round to multiple of any number.

Usage

round_any(x, accuracy, f = round)

Arguments

x

numeric or date-time (POSIXct) vector to round

accuracy

number to round to; for POSIXct objects, a number of seconds

f

rounding function: floor, ceiling or round

Examples

Run this code
round_any(1.865, accuracy = .25)

Run the code above in your browser using DataLab