round_any: Round to multiple of any number

View source: R/utils.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 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

Source

This function and the documentation are taken from the ‘plyr’ package. The function is defined separately in prettyGraphics to reduce reliance on non-default packages.


edwardlavender/prettyGraphics documentation built on Jan. 19, 2025, 2:47 p.m.