View source: R/generate-date-periods.R
Generate a table with pairings of dates and periods
1 2 3 4 5 6 7 8 |
start |
Start date |
end |
End date |
periods |
A vector of calendar periods. This supports "day", "week", "month", "quarter", and "year". |
windows |
A vector of windows, each representing a # of days |
intervals |
Whether a preselected set of intervals starting from today, such as "Last Week", "Last 2 Weeks", or "All Time" should be included. |
today_date |
Date to count as "today": by default, |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.