I\'m quite new to all the packages meant for calculating rolling averages in R and I hope you can show me in the right direction.
I have the following data as an exa
You can try 'cut'. For example, if you want to divide ms such that you have 5 groups overall then you can do:
df$ms_factor <- cut(df$ms, 5) df_new <- df %>% group_by(ms_factor) %>% summarise(mean = mean(correct))