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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Rename all?


From   Rebecca Pope <rebecca.a.pope@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Rename all?
Date   Wed, 7 Nov 2012 12:31:17 -0600

I believe we answered a very similar question yesterday. I provided
you with a loop that, with some modification, would work in this
situation and Scott Merryman suggested the much shorter and more
efficient solution -rename p# p#, renumber-.

Just for your convenience, here is a link to our responses from yesterday:
Scott: http://www.stata.com/statalist/archive/2012-11/msg00215.html
Me: http://www.stata.com/statalist/archive/2012-11/msg00213.html

To use Scott's solution (which is what I advise now), you would just
need to type -rename prc# shrout#-. You can find out more about this
by typing -help rename group- (my experience w/ Stata 12; you haven't
told us what verison you are using).

Rebecca



On Wed, Nov 7, 2012 at 12:13 PM, Zhangqunzi <zhangqunzi@googlemail.com> wrote:
>
> 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/


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