Bookmark and Share

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 over several macros


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: looping over several macros
Date   Tue, 15 Feb 2011 16:34:58 +0000 (GMT)

--- On Tue, 15/2/11, Maarten buis wrote:
> Is this what you are looking for:
> 
> *------------ begin example ----------------
> local foo "a b"
> local bar "1 2"
> 
> forvalues i = 1/2 {
>     local part_foo : word `i' of `foo'
<snip>

I should have added that the place to read more
about these is the helpfile for extended macro 
functions: -help extended_fcn-. I never remember
that name, so I always look for -help macro- and
follow the link. 

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index