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

st: removing prefix


From   [email protected]
To   [email protected]
Subject   st: removing prefix
Date   Wed, 3 Sep 2003 09:31:26 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear STATA-Listers, 

I have a data set which uses different variable prefixes for different
waves of the panel. So the variable name of the first wave is: 
a_varname

To work with all the waves using the same commands I would like to
remove the different prefixes (a_ for the first wave, b_ for the
second and so on). To this end I used the "renpfix" command. However I
could not figure out how I could replace the prefix for "nothing",
i.e. I want to change

	a_varname  ===> varname

How can that be done? 

Thanks, 
Ben Kriechel

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2i

iQA/AwUBP1WLBudb8S0dfCWJEQIkGACgpj2OCI9/ETKzqrl97JTXseeGDLIAoM+s
xaYSGnxz25fPbf9Ekd8X73GF
=WBNK
-----END PGP SIGNATURE-----
*
*   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