BuildDateVecs: Build A Date Vector

Description Usage Arguments Value Examples

View source: R/data_fxns.R

Description

Given a cadence, start and end date build a vector of dates

Usage

1
2
BuildDateVecs(cadence = cadence, start.date = start.date,
  end.date = end.date)

Arguments

cadence

Numeric (1 = days, 2 = weeks, 3 = months and 4 = years)

start.date

Start Date - Type Date

end.date

End Date - Type Date

Value

mydata A list with two/three elements: date, year and day/week/month

Examples

1
mydata <- BuildDateVecs(cadence = 2, start.date = "01-01-2015", end.date = "12-31-2015")

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.