# NOT RUN {
## processing operations from other notation
calc_result <- function(dat, operation){
operation <- gsub('x', '*', operation)
mutate(dat, result = !!treat_string_as_expr(operation))
}
calc_result(mtcars, "mpg x hp")
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace