I have around 33 dataframes (df1, df2, df3, df4 ...) that look like this:
Date Month Value
2018-07-16 2018-07 10
2018-07-17 2018-07 2
2018-07-18 2018-07 4
2018-07-19 2018-07 45
2018-07-20 2018-07 13
and I would like to group each data frame by month, like this:
df1 = df1 %>% group_by(Month)%>%
summarise(
sd_value = sd(value)
)
How can I do this on all dataframes without repeating it? Also, I will need to export the results as separate data frames.
I've tried to duplicate some other people's solutions using for loop but doesn't work. Also, I have all the dataframes separately in my Environment, they are not in a list.