dts_floor | R Documentation |
Floors the Date or POSIXct column of a date time series data frame.
dts_floor(x, dtt = "DateTime", units = dttr2::dtt_units(x[[dtt]]))
x |
A date/time vector. |
dtt |
A string specifying the column with the Date or POSIXct values. |
units |
A string of the time units. The possible values are "secs", "minutes", "hours", "days" or "weeks". |
The completed data time series.
dts_floor(dts_data[c(1,3),], units = "years")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.