I want to recode some numeric values into different numeric values and have had a go using the following code:
survey$KY27PHYc <- revalue(survey$KY27PHY1, c
This function does not work on numeric vector. If you want to use it, you can do as follows:
x <- 1:10 # your numeric vector as.numeric(revalue(as.character(x), c("2" = "33", "4" = "88"))) # [1] 1 33 3 88 5 6 7 8 9 10