Transforming a variable from string go numeric

后端 未结 0 1543
感动是毒
感动是毒 2021-02-19 09:55

I\'m trying to covert a binary variable from a string (eg "Male" or "Female") into binary (0 and 1). I tried with the following:

replace q1=1          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题