I am trying to dynamically manipulate columns of a data frame like so :
dw <- dw %>% mutate(a := "a + b_{i}")
with a, b_1, b_2, b_3 etc. being column names and i being an index in a loop. This doesn't work and I also failed to make it work using glue(). Is there a way to use glue evaluation and then do some operations with mutate ?