Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Nick Cox" <n.j.cox@durham.ac.uk> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: literal single quotes |
Date | Thu, 4 Mar 2010 17:37:06 -0000 |
This sounds like the urge for setting up a delayed evaluation, on which my advice is 1. Use \` to insert a literal left quote if the urge is overwhelming. 2. Better, resist the urge. Rewrite your code so that you don't need to do it. This came up a few months ago, but I can't find my post. Martin Weiss will probably remember it. Nick n.j.cox@durham.ac.uk Feiveson, Alan H. (JSC-SK311) 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. * * 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/