round_to_any: round_to_any

View source: R/util.R

round_to_anyR Documentation

round_to_any

Description

because we don't want to have to suggest plyr, if we can avoid it.

Usage

round_to_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

Value

a numeric vector


almartin82/mapvizieR documentation built on June 3, 2023, 10:53 a.m.