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

Re: st: Number of elements in Global


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: Number of elements in Global
Date   Wed, 09 Nov 2005 09:30:39 -0500

The most modern approach is

local num : list sizeof global(A)

(See help macrolists in Stata)

Another way is

local num : word count $A

--Nick Winter

At 09:24 AM 11/9/2005, you wrote:
Dear all!
How can I get the number of element in global.
Like:
global A "var1 var2 var3....varN"







___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
T�l�chargez cette version sur http://fr.messenger.yahoo.com
*
*   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/
________________________________________________________
Nicholas J. G. Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government [email protected] e
Cornell University falcon.arts.cornell.edu/nw53 w
308 White Hall
Ithaca, NY 14853-4601


*
* 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