Description Usage Arguments Value Examples
Get elapsed months between two dates.
1 | elapsed_months(start_date, end_date, method = "round")
|
start_date |
Start date. |
end_date |
End date |
method |
Calculation method: |
A numeric value.
1 2 3 4 5 6 7 8 | # All days in a year
timer::elapsed_months(lubridate::dmy("01/01/2000"), lubridate::dmy("31/12/2000"))
# All days in a year + 1
timer::elapsed_months(lubridate::dmy("01/01/2000"), lubridate::dmy("01/01/2001"))
# All days in a year + 1 with max method
timer::elapsed_months(lubridate::dmy("01/01/2000"), lubridate::dmy("01/01/2001"), method = "max")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.