date_bop | R Documentation |
The date of bop (beginning of period) or eop (end of period).
date_bop(freq, x, workday = FALSE)
date_eop(freq, x, workday = FALSE)
freq |
the frequency of period. It supports weekly, monthly, quarterly and yearly. |
x |
a date |
workday |
logical, whether to return the latest workday |
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.
date_bop('weekly', Sys.Date())
date_eop('weekly', Sys.Date())
date_bop('monthly', Sys.Date())
date_eop('monthly', Sys.Date())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.