Hi
I have a long vector containing nothing but 'yes' or 'no'; I want to code it into 1s and 2s. Please could someone show me how to do it? I've tried using switch and ifelse, but failed.
(Ultimately I want to use the vector in the pch field of my funnel chart, to show two types of points.)
Many thanks!!!!
Annabel