Hi Please help, thanks in advance.
I want to covert one of my columns that contains a character type in the form of the following --> e2/e2, e2/e3, e2/e4, e3/e3, e3/e4, and e4/e4 ( $5. format). I plan to convert this to the numeric variable before analysis.
such that
e2/e2 , e2/e3 and e3/e3 will be coded as 1
e2/e4, e3/e4 and e4/e4 will be coded as 2
I am not sure how to do this!
Please help. thanks in advance!