View source: R/dateFunctions.R
mid_date | R Documentation |
Compute the midpoint between two dates
mid_date(startdate, enddate)
startdate |
A vector of class |
enddate |
A vector of class |
A vector of class Date
containing the midpoint date(s) between
startdate
and enddate
Steve Gutreuter
interval
begin <- ymd("2020-06-21", "2021-06-21")
end <- ymd("2020-12-21", "2021-12-21")
mid_date(begin, end)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.