Very basic question, but I wasn't able to find an answer by searching:
I'm trying to recode the values of an ordinal variable to new values.
I tried using the recode() function from the car package like this:
recode(x, "0=1; 1=2; 3=2")
and I get the following error message:
Error in recode(threecat, "0=1; 1=2; 3=2") :
(list) object cannot be coerced to type 'double
'
Thanks for your help.
dput(head(x)). It appears it is an issue with your data (given the erorr message) - mnel