floor_index | R Documentation |
lubridate::floor_date()
This is a thin wrapper around a lubridate::floor_date()
that works
for hms
, yearmon
, and yearqtr
classes as well.
floor_index(x, unit = "seconds")
x |
a vector of date-time objects |
unit |
a string, When |
lubridate::floor_date()
data(FB) dplyr::mutate(FB, date2 = floor_index(date, "year")) time_test <- create_series('00:00:00'~'12:00:00', '1 minute', class = "hms") dplyr::mutate(time_test, date2 = floor_index(date, "hour"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.