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: Looping to rename
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Looping to rename
Date
Tue, 6 Nov 2012 20:42:25 +0000
I see how that could happen. If it bites someone else, I'll think of
fixing it, or trying to, but as you have other good solutions, it
doesn't seem a priority.
Nick
On Tue, Nov 6, 2012 at 8:30 PM, Zhangqunzi <[email protected]> wrote:
> I have 5000 variables and 10000days in the whole data set.
>
> I tried renvars but it stopped due to memory problem.
>
> 在 Nov 6, 2012,9:27 PM,Nick Cox <[email protected]> 写道:
>
>> This has been solved by others but at least one detail remains.
>>
>> There is a reference here to -renvars- (SJ). -renvars- is nearly
>> obsolete so far as Stata 12 is concerned, but not some earlier
>> versions. So, there is some residual concern if it appears not to work
>> well. What "memory problems" are referred to here?
>>
>> Nick
>>
>> (By the way, we can't really be expected to debug pseudocode.)
>>
>> On Tue, Nov 6, 2012 at 7:44 PM, Zhangqunzi <[email protected]> wrote:
>>
>>> I want to rename my var list: p1,p3,p7..,
>>> Into new one :p1,p2,p3...
>>>
>>> Currently I am running such loop:
>>> Local i
>>> For var of varlist
>>> Rename var pi
>>>
>>> But stata tells me error: can't find macro i ... How should I solve this problem?
>>>
>>> I can't use renvars due to memory problem.
*
* 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/