getRelativeDates: Get Relative Dates

Description Usage Arguments Examples

View source: R/getRelativeDates.R

Description

This function takes a target date as a well formatted character, e.g. '2019-01-01' and returns a dataframe of relative dates, e.g. yesterday, last week ending, last quarter start, etc.

Usage

1
2
getRelativeDates(targetDate = as.character(as.Date(format(Sys.time(),
  "%Y-%m-%d"))))

Arguments

targetDate

The date of interest as a well formatted character string, e.g. '2019-01-01'

Examples

1

smmurphy/convenience documentation built on Aug. 26, 2020, 8:46 p.m.