"round"(x, units = c("secs", "mins", "hours", "days"))
"trunc"(x, units = c("secs", "mins", "hours", "days"), ...)
"round"(x, ...)
"trunc"(x, ...)
"POSIXt"
or "Date"
.digits
for round
."POSIXlt"
or "Date"
.
The methods for class "Date"
are of little use except to remove
fractional days.
round
for the generic function and default methods.round(.leap.seconds + 1000, "hour")
trunc(Sys.time(), "day")
Run the code above in your browser using DataLab