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: literal single quotes


From   Phil Schumm <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index