to_datetime | R Documentation |
Convert event endpoints to date-times
to_datetime(e, tz = "UTC", origin = as.POSIXct("1970-01-01", tz = "UTC"))
e |
Event table or atomic vector. |
tz |
Time zone (see |
origin |
Date-time object (see |
t <- as.POSIXct("1970-01-01", tz = "UTC") + 0:4
e <- events(t)
to_datetime(e)
to_datetime(e$from)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.