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: string question
From
Thomas <[email protected]>
To
[email protected]
Subject
Re: st: string question
Date
Tue, 07 Jun 2011 13:59:38 +0100
Many thanks. I have one follow up question.
I would like to call a scalar in _dup() like
. local fivefrogs : di _dup(`n') "frog"
For some reason this does not work. How can this be done?
Thanks,
Thomas
On 07/06/2011 09:37, Nick Cox 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<[email protected]> 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/
*
* 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/