I would like to write an expression inside mutate in variable and then use it inside mutate. Here is my attempt:
data(mtcars)
newVariables <- "x = hp + gear, y = ((drat + wt) / carb)"
mtcars %>%
mutate(newVariables)
How can I use this character vector inside mutate, in a way that it creates 2 new variables?