calc_elapsed_weeks: Calculate the weeks elapsed from a reference date

View source: R/utils.R

calc_elapsed_weeksR Documentation

Calculate the weeks elapsed from a reference date

Description

Calculate the weeks elapsed from a reference date

Usage

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


## Not run: 
library(lubridate)
calc_elapsed_weeks(today())

## End(Not run)

idea-analytics/ideadata documentation built on Feb. 1, 2024, 5:40 a.m.