SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the standard evaluation version of mutate_each (which is mutate_each_) to change the column classes:
mutate_each
mutate_each_
dat %>% mutate_each_(funs(factor), l1) %>% mutate_each_(funs(as.numeric), l2)