I want to find a more elegant way to transform my data from likert scale to a standardized scale. Plyr's mapvalues seems to work but it isn't elegant. I tried purrr but it didn't work as I'd hoped.
data$var1 <- mapvalues(data$var1,
from=c("1","2","3", "4", "5"),
to=as.integer(c("0", "25", "50", "75", "100"))
I have several variables that I would like to transform so any insights on doing this using purrr functions would be great.
This is my first stackoverflow post so forgive me if I am not following the right protocol.
-RP