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: Stata 12 bug report: -rename- with wild card (*) used in do-file
From
Gundi Knies <[email protected]>
To
[email protected]
Subject
Re: st: Stata 12 bug report: -rename- with wild card (*) used in do-file
Date
Wed, 08 Aug 2012 17:06:54 +0100
thanks for the suggestions.
turns out I had a redundant version control in my do-file (i.e.
switching to Stata 11), and this wild card was only implemented in
version 12.
thanks also for pointing me to -renvars. it's neat.
Gundi
On 08/08/2012 16:09, William Buchanan wrote:
Why not use one of the -renvars- functions if the only thing you are doing is substituting "_" with "1_"? Seems like it would make things much easier.
HTH,
Billy
Sent from my iPhone
On Aug 8, 2012, at 7:54, Gundi Knies <[email protected]> wrote:
Hey folks
I was planning to use -renpfix- to change a series of variable prefixes in my data file but noted that users are pointed toward using -rename- instead. Fine ..
Now, the issue is that I found that the following command does the desired renames if I execute it interactively in Stata 12, but not when I include it in a do-file:
rename *_* *1_*
The error message suggests the wild card * is an invalid name"=.
Am I missing something?
Best,
Gundi
--
Dr Gundi Knies
Institute for Social and Economic Research
University of Essex
Wivenhoe Park
Colchester CO4 3SQ
UK
Tel: +44 (0)1206 872734
Fax: +44 (0)1206 873151
Learn about Understanding Society, the UK Household Longitudinal Study (UKHLS),see in particular www.understandingsociety.org.uk/documentation
*
* 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/
*
* 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/
--
Dr Gundi Knies
Institute for Social and Economic Research
University of Essex
Wivenhoe Park
Colchester CO4 3SQ
UK
Tel: +44 (0)1206 872734
Fax: +44 (0)1206 873151
Learn about Understanding Society, the UK Household Longitudinal Study (UKHLS),see in particular www.understandingsociety.org.uk/documentation
*
* 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/