SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the recode function from dplyr.
recode
dplyr
df <- iris %>% mutate(Species = recode(Species, setosa = "SETOSA", versicolor = "VERSICOLOR", virginica = "VIRGINICA" ) )