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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: literal single quotes


From   Phil Schumm <pschumm@uchicago.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: literal single quotes
Date   Thu, 4 Mar 2010 11:41:12 -0600

On Mar 4, 2010, at 11:21 AM, Feiveson, Alan H. (JSC-SK311) wrote:
Can someone please tell me how to define a local macro that contains literal single quotes? For example Suppose I want to do something like

local bull "count if `temp' > 0"

where `temp' is to be interpreted literally, not evaluated.


. local bull "count if \`temp' > 0"

. mac li _bull
_bull:          count if `temp' > 0


-- Phil

*
*   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