powered by
The date of bop (beginning of period) or eop (end of period).
date_bop(freq, x, workday = FALSE)date_eop(freq, x, workday = FALSE)
date_eop(freq, x, workday = FALSE)
date_bop returns the beginning date of period of corresponding x by frequency.
date_eop returns the end date of period of corresponding x by frequency.
the frequency of period. It supports weekly, monthly, quarterly and yearly.
a date
logical, whether to return the latest workday
date_bop('weekly', Sys.Date()) date_eop('weekly', Sys.Date()) date_bop('monthly', Sys.Date()) date_eop('monthly', Sys.Date())
Run the code above in your browser using DataLab