Hi everyone, I need to recode categorical variables so that its values are recoded automatically in sequential order starting by "1"
for example now I have a variable school_lev where its values are 10"None" 33 "elementary school" 40"high school" so i want to somehow generate the variable so that 10>> becomes 1 33>>becomes 2 & 40>>become 3. of course I know Ican do it manually but with the number of variables i have, it will take very long time to do it . Plus if there is a way to preserve the original labels please let me know.
Many thanks in advance
for example now I have a variable school_lev where its values are 10"None" 33 "elementary school" 40"high school" so i want to somehow generate the variable so that 10>> becomes 1 33>>becomes 2 & 40>>become 3. of course I know Ican do it manually but with the number of variables i have, it will take very long time to do it . Plus if there is a way to preserve the original labels please let me know.
Many thanks in advance
Comment