View source: R/English-months-function.R
get.date.range | R Documentation |
Compute the range of dates and present results using English months, like "January 01, 2020 – January 31, 2020". If there is only one date, then the output will be something like "January 01, 2020 (one day only)". See also: dayno.calc conv.ref.date dayno.clock.reversed dayno.clock English.months
Example:
get.date.range(x="31-01-2020")
get.date.range(x=c("01-01-2020","01-01-2020"))
get.date.range(x=c("01-01-2020","31-01-2020"))
get.date.range(x=c("01-01-2020","31-01-2020"))
x |
vector with dates in the format "31-01-2020". |
string with human readable text.
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.