I have a dataset where some of the columns contain a mix of numbers (eg. 1-5) and characters (eg. Don't know and Not applicable). I was wondering if anyone knows how I can change the words into a number using STATA. I'm using STATA 13. I haven't had success with destring or encode. I also tried to get rid of the space in Not applicable using itrim() and that hasn't worked for me either. Thanks so much!
-
Login or Register
- Log in with
Comment