Hi everyone
I got these daily sales ts, that I want to make monthly:
I got data from 18-01-01 to 20-10-31 with multiple duplicates of the same date since it is split between different customers.
(expenses <- data_frame(
date=seq(as.Date("2018-01-01"), as.Date("2020-10-31"), by=1),
Sales=rgamma(length(date), shape = 2, scale = 20)))
expenses %>% group_by(month=floor_date(df$Date, "month")) %>%
summarize(amount=sum(df$Sales))
So in short what I want is monthly sales data, I'm using a mac with the latest version of R-studio
Thanks for helping