Hi Nick!
-encode- didn't work properly, but the -replace- solution did.
Thanks a lot!!
n j cox wrote:
Not so far as I know. You could -encode-
your string variable, then apply -recode-.
Otherwise it is a matter of a series
of -replace-s.
Nick
[email protected]
>>> Thushyanthan Baskaran (edited)
I would like to recode a string variable. However, -recode- accepts
numeric values only. Is there a similar command for string variables?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/