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

st: replace


From   "Hans J. Baumgartner" <[email protected]>
To   [email protected]
Subject   st: replace
Date   Fri, 10 Dec 2004 12:33:35 +0100

Dear statalist


I would like to replace some values but the old values should be some part of the new values

That is

VARold
1
2
3

should become

VARnew
text1
test2
test3


The trick is to be flexible, since I would like to use the command in a loop and hence the values of VARold may not be constant over all loops.

All suggestions are welcomed

Thanks
Hans

--
Hans J. Baumgartner DIW Berlin
German Institute for Economic Research
Dept. Public Economics
K�nigin-Luise-Str. 5; 14195 Berlin; Germany
Tel.: +49/30/89789-307
Fax.: +49/30/89789-114
http://www.diw.de
http://www.hansbaumgartner.de


*
* 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