Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: How to quickly replace values of a variable


From   "Quang Nguyen" <[email protected]>
To   [email protected]
Subject   st: How to quickly replace values of a variable
Date   Wed, 31 Jan 2007 21:47:56 -1000

Dear all,
I have the following simple data:
permit
101
101
102
102
103
103
104
104
105
105
105
....

There are about 300 observations. I would like to replace 101 by
65687, 102 by 65686, and so on. This can be done by  -recode-.
However, it is a bit messy.  Can you suggest me a more elegant way of
doing this. For instance, in Excel one can us ethe -vlookup- feature.
Is there something similar we can do with Stata.
Thanks so much for your help and Have A Wonderful Day!
Sincerely yours,
Quang
*
*   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