Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: recoding strings


From   Thushyanthan Baskaran <[email protected]>
To   [email protected]
Subject   Re: st: recoding strings
Date   Fri, 16 Sep 2005 13:22:29 +0200

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index