> av_data1_all<-s_complete %>% + group_by(Gender_SNB, num_SNB)%>% + dplyr::summarize(prop=mean(num_SNB), synch = sum(num_SNB), + n = n()) `summarise()` has grouped output by 'Gender_SNB'. You can override using the `.groups` argument.
av_data1_all<-s_complete %>% group_by(Gender_SNB, num_SNB)%>% dplyr::summarize(prop=mean(num_SNB), synch = sum(num_SNB), n = n(), .groups='drop')