I'd like to create variables using a specific pattern. I need to include the variable name as a tidy evaluation in the mutate function. I made a custom example below:
iris %>%
rename(Sepal = Sepal.Width, Petal = Petal.Width) %>%
mutate_at(c('Sepal', 'Petal'), list(test = ~ . / !!sym(paste0(., '.Length'))))