Skip to content
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

condense_period #125

Open
saurabhkumartsc opened this issue Jul 6, 2022 · 0 comments
Open

condense_period #125

saurabhkumartsc opened this issue Jul 6, 2022 · 0 comments

Comments

@saurabhkumartsc
Copy link

Hi Matt,

condense_period : While aggregating the data say from daily to weekly level, does not have option to sum the values. For example for sales data at daily level, when aggregated using condense_period, the values does not match at both daily and weekly levels.

Can there be an option to add additional function such as sum, average, median etc. while condensing the period?

For Example:

Below two results don't match:

Output1:
m4_daily %>%
group_by(id) %>%
condense_period(.period = "1 month") %>%
summarise(tot = sum(value))

Output2:
m4_daily %>%
group_by(id) %>%
summarise(tot = sum(value))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant