cut_time_of_day | R Documentation |
Cut a POSIXct Vector into time of day (HH:MM)
cut_time_of_day(x)
x |
a datetime object. |
ordered factor with time of day
fn <- rOstluft.data::f("Zch_Stampfenbachstrasse_h1_2013_Jan.csv")
data <- rOstluft::read_airmo_csv(fn)
data <- dplyr::mutate(data,
"Etc/GMT-1" = cut_time_of_day(.data$starttime),
utc = cut_time_of_day(lubridate::force_tz(.data$starttime, "UTC")),
utc_converted = cut_time_of_day(lubridate::with_tz(.data$starttime, "UTC")),
berlin = cut_time_of_day(lubridate::force_tz(.data$starttime, "Europe/Berlin"))
)
tibble::glimpse(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.