tidy eval with e.g. mtcars %>% mutate(target := log(target))
问题 I figured this out while typing my question, but would like to see if there's a cleaner, less code way of doing what I want. e.g. code block: target <- "mpg" # want mtcars %>% mutate(target := log(target)) I'd like to update mpg to be the log of mpg based on the variable target. Looks like I got this working with: mtcars %>% mutate(!! rlang::sym(target) := log(!! rlang::sym(target))) That just reads as pretty repetitive. Is there a 'cleaner', less code way of achieving the same result? I'm