-
Notifications
You must be signed in to change notification settings - Fork 8
Demonstrate time aggregation in vignette #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @jacobbien. Wondering what @earowang thinks? We're currently thinking that casting to Do you see a downside to this approach, or have different perspectives on its pros & cons? |
Coercing to
dat %>%
as_tsibble() %>% # less learning
index_by()
|
@ryantibs @jacobbien happy to take up writing the vignette for this issue if it's available. |
@qpmnguyen Thanks! Please go for it. I like Earo's idea of defining I also think you could consider demonstratinging tsibble's functionality for detecting and filling gaps in the time series (either with NAs or with LOCF). Thanks again for volunteering. |
In the first half of the "aggregation.Rmd" vignette, we should include some examples of how to perform time aggregation. In particular, the approach to demo is casting to
tsibble
on-the-fly and then leveraging the handy functions there.A particularly useful example would involve adding aggregation to the epiweek level:
Here the function
epiweek
function would have to be defined (perhaps based on theMMWRweek
R package).(For more context on this issue, see #7)
The text was updated successfully, but these errors were encountered: