Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: Rename all?


From   Zhangqunzi <zhangqunzi@googlemail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: RE: Rename all?
Date   Wed, 7 Nov 2012 19:20:23 +0100

Thanks 
Renpfix works well

在 Nov 7, 2012,7:18 PM,"Fogel, Ariel" <AFogel@urban.org> 写道:

> Why not simply use a loop?
> 
> forvalues i =1/10{
> rename prc`i' shrout`i'
> }
> 
> Ariel
> 
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Zhangqunzi
> Sent: Wednesday, November 07, 2012 1:13 PM
> To: Stats
> Subject: st: Rename all?
> 
> Dear all,
> 
> I am trying to rename a current varlist prc1...10 into shrout1....10.
> 
> I tried 
> rename prc* shrout* 
> 
> But it doesn't work, what command should I use then?
> 
> Thanks a lot in advance
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index