Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: tempname


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: tempname
Date   Fri, 4 Oct 2002 17:55:55 +0100

Nick Cox

> Within a loop controlled by -forvalues- or -foreach- (or
> indeed -while-)
> 
> 	tempname mymat
> 
> always generates a _new_ tempname, even if
> `mymat' already exists. This is
> not, to me, intuitive, but it's what
> happens.

Strictly, this is true irrespective 
of whether you are inside a loop 
or not. In practice, it seems most 
useful within some loop. 

Nick 
[email protected] 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index