All the examples i see for curly curly are within the context of writing functions.
I just want to loop around my grouping variables and get frequencies, so i'm trying to get something like this to work:
my_var <- "model"
mpg %>% group_by({{ my_var }}) %>% summarise(n=n())
but this doesn't give the expected output, ie what i would get if i was just using
mpg %>% group_by(model) %>% summarise(n=n())
How can I use non standard evaluation in this simple setting?
Note that i am not asking about a group_by_at
type solution but a non-standard evaluation solution, so this is not a duplicate of dplyr group by colnames described as vector of strings