Hi again,
I was trying to recode a variable which has 0,1,2 to yes and no using
home_filter<- ckd %>% na.omit() %>% select(`filter home`) %>% mutate(`filter home`=recode(`filter home`, 1 = "no", 2 = "yes", 0 = "no"))
But error comes.Then I tried
home_filter<- ckd %>% na.omit() %>% select(`filter home`) %>% mutate(`filter home`=recode(`filter home`, "1" = "no", "2" = "yes", "0" = "no"))
Then only 4 is recoded. Why is this happening