round_any: Round to multiple of any number

View source: R/internal_functions.R

round_anyR Documentation

Round to multiple of any number

Description

Round to multiple of any number

Usage

round_any(x, accuracy, f = round)

Arguments

x

numeric vector to round

accuracy

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

f

rounding function: floor, ceiling or round

Value

Rounded numeric vector

Author(s)

Hadley Wickham


ggOceanMaps documentation built on June 22, 2026, 5:07 p.m.