calc_elapsed_weeks | R Documentation |
Calculate the weeks elapsed from a reference date
calc_elapsed_weeks(ref_date, first_day = "2020-07-01")
ref_date |
The end date (as character) for the duration used to calculate elapsed weeks |
first_day |
the fixed date (as character) to start counting weeks from |
an integer giving the number of weeks elapsed b/w first_day
and ref_date
## Not run:
library(lubridate)
calc_elapsed_weeks(today())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.