create_week_list: Create week list given a start and end date.

Description Usage Arguments Value

Description

Create week list given a start and end date.

Usage

1
2
create_week_list(start_date = as.Date("2016-01-01"), end_date = Sys.Date(),
  week_begins = 2)

Arguments

start_date

The earliest date allowed in the output.

end_date

The latest date allowed in the output.

week_begins

The day of the week that all output dates must fall on. Given as an integer (1 = Sunday , 2 = Monday , etc...).

Value

A data table (week_beginning) of dates that correspond to the first date in each week.


johnchower/cctimes documentation built on May 19, 2019, 3:03 p.m.