find_startdate: Find start date

Description Usage Arguments Details Author(s) Examples

View source: R/find_startdate.R

Description

This function allows you to find start date given certain time period and end date

Usage

1
find_startdate(end_date, period)

Arguments

end_date

end date of the time period, character

period

time period, character

Details

no worry for period's case sensitivity, however do need a whitespace between number and unit. options: "MTD", "QTD", "YTD", "X Weeks", "X Week", "X Month", "X Months", "X Year" and "X Years"

Author(s)

Alfred

Examples

1
find_startdate("2017-05-31", "week")

Alfred-Zhang/ResearchTools documentation built on Nov. 23, 2017, 1:54 a.m.