Calculate the weeks elapsed from a reference date

calc_elapsed_weeks(ref_date, first_day = "2020-07-01")

Arguments

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

Value

an integer giving the number of weeks elapsed b/w first_day and ref_date

Examples


if (FALSE) {
library(lubridate)
calc_elapsed_weeks(today())
}