SyntaxFix
Write A Post
Hire A Developer
Questions
It's a one-liner with mutate_at:
mutate_at
dat %>% mutate_at("l1", factor) %>% mutate_at("l2", as.numeric)