Description Usage Arguments Value Examples
We sometimes need to subset high-frequency daily data to fit less high-frequency data that occurs on some other time interval. This function lets you pick the time range and does the subsetting for you.
1 | subset_date(data = NULL, date = "date", freq = "week")
|
data |
A dataset that includes a date variable. |
date |
The name of your date variable in your data. |
freq |
What frequency to subset to. E.g. "week", "month", etc. |
A tibble of data.
1 | subset_date(data = pollbasepro, date = "date", freq = "week")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.