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 <>
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.
global A "var1 var2 var3....varN"

Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
TÚlÚchargez cette version sur
*   For searches and help try:
Nicholas J. G. Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government e
Cornell University w
308 White Hall
Ithaca, NY 14853-4601

* For searches and help try:

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