date_centre | R Documentation |
Function to calculate the centre point of two dates.
date_centre(date_start, date_end)
date_start |
Start date. |
date_end |
End date. |
POSIXct
vector with a length of one.
Stuart K. Grange.
# Define some dates
date_one <- lubridate::ymd_h("2019-02-03 5", tz = "UTC")
date_two <- lubridate::ymd_hms("2019-04-12 6:54:55.98565", tz = "UTC")
# Calculate centre point
date_centre(date_one, date_two)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.