Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: How to rename a list of all consecutive variables in a data set?
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: How to rename a list of all consecutive variables in a data set?
Date
Fri, 7 Jan 2011 13:20:59 +0000
I like -renvars- (SJ) too, but in this case -renpfix- is an often overlooked official possibility.
Nick
[email protected]
Neil Shephard
Easiest utility for this is the -renvars-.
findit renvars
...will get you the most recent version. Then -man renvars- for
details of usage.
Eleonora Paesen
> Does anyone know how to rename a list of consecutive variables
> included in a dataset (as they are ordered in it)?
> I have tried this:
> rename varalpha-varomega newvaralpha-newvaromega
> It does not work.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/