How can I use variables in place of column names in dplyr strings? As an example say I want to add a column to the iris dataset called sum that is the sum o
I think that recommended way is using sym:
sym
iris %>% mutate(sum = !!sym(x) + !!sym(y)) %>% head