title: dplyr- group by in a for loop r
body: <p>I am trying to use group by in a for loop. I would like the gourp by to cycle through each column and then I can perform a summarise action. I tried to used colnames(df[i]) within the groupby but because colnames comes back with quotation marks this method does not work.</p>
  
  <p>Any suggestions? </p>