round_POSIXct: Round POSIXct timestamps

Description Usage Arguments Details

View source: R/round_POSIXct.R

Description

Round POSIXct timestamps

Usage

1
2
3
4
5
6
round_POSIXct(x, n = 1, units = c("secs", "mins", "hours", "days"),
  method = round)

ceiling_POSIXct(x, n = 1, units = c("secs", "mins", "hours", "days"))

trunc_POSIXct(x, n = 1, units = c("secs", "mins", "hours", "days"))

Arguments

x

POSIXct vector

n

number of units to round off

units

to round off to

method

round method, see Round

Details

Rounds POSIXct vector with specified method.


QuantTools documentation built on Oct. 23, 2020, 7:54 p.m.