Round POSIXct timestamps
Round POSIXct timestamps
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"))x |
POSIXct vector |
n |
number of units to round off |
units |
to round off to |
method |
round method, see Round |
Rounds POSIXct vector with specified method.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.