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

Re: st: recoding strings

From   Thushyanthan Baskaran <>
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.


>>> 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:
*   For searches and help try:

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