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

st: RE: Number of elements in Global


From   adiallo5@worldbank.org
To   statalist@hsphsun2.harvard.edu
Subject   st: RE: Number of elements in Global
Date   Wed, 9 Nov 2005 09:49:04 -0500

You can also try :
local n : list sizeof global A
Best regards.
Amadou.
                                                                                 
                                                                                 
                                                                                 
 Thank you very mauch!                                                           
 --- Jose Valderrama <jvalderrama@minag.gob.pe> a écrit                          
 :                                                                               
                                                                                 
 > global A "var1 var2 var3"                                                     
 > global nA :  word count $A                                                    
 > dis $nA                                                                       
 >                                                                               
 > José A. Valderrama                                                            
 >                                                                               
 > -----Mensaje original-----                                                    
 > De: owner-statalist@hsphsun2.harvard.edu                                      
 > [mailto:owner-statalist@hsphsun2.harvard.edu] En                              
 > nombre de PNIR                                                                
 > PUISSANCE                                                                     
 > Enviado el: Miércoles, 09 de Noviembre de 2005 09:25                          
 > a.m.                                                                          
 > Para: statalist@hsphsun2.harvard.edu                                          
 > Asunto: st: Number of elements in Global                                      
 >                                                                               
 > Dear all!                                                                     
 > How can I get the number of element in global.                                
 > Like:                                                                         
 > global A "var1 var2 var3....varN"                                             
 >                                                                               
 >                                                                               
 >                                                                               
 >                                                                               
 >                                                                               
                                                                                 
 ------------------------------------------------------------------------------- 



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index