Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: string question


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: string question
Date   Tue, 7 Jun 2011 10:05:45 +0100

also

mata : st_local("fivefrogs", 5 * "frog")

On Tue, Jun 7, 2011 at 9:37 AM, Nick Cox <njcoxstata@gmail.com> wrote:
> . di _dup(5) "frog"
> frogfrogfrogfrogfrog
>
> . local fivefrogs : di _dup(5) "frog"
>
> . di "`fivefrogs'"
> frogfrogfrogfrogfrog
>
> Nick
>
> On Tue, Jun 7, 2011 at 9:22 AM, Thomas <thomas.triebs@cantab.net> wrote:
>
>> I need to define macros with a few words that are repeated many times like:
>>
>> global macro a ..... b .....
>>
>> Is there any string function that allows to to repeat a word x times?
>
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index