define_date_ranges: Return a list of date intervals relative to the current date.

Description Usage Arguments Value

Description

Return a list of date intervals relative to the current date.

Usage

1
2
define_date_ranges(base_date = Sys.Date(), min_date = as.Date("2016-01-01"),
  week_start = 1)

Arguments

base_date

A date object.

week_start

An integer denoting the first day of the week (1 = Sunday)

Value

interval_list A list of (date_interval, functions_to_apply) pairs. See standardmetrics::interval_list for an example of how to format this list.


johnchower/standardmetrics documentation built on May 19, 2019, 4:21 p.m.