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]

st: Tokenize macro with quotes


From   "Cook, Daniel E" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Tokenize macro with quotes
Date   Tue, 18 Oct 2011 15:13:00 +0000

Hello,

I'm trying to use postfile to add a variables labels as part of a summary table. My issue is finding a way to get the labels into a string variable for export.

I'm using labellist (not a part of the normal stata distribution.

So I use labellist to return a list of the labels and this is the return output (I am working with genetics here).
r(labels) : "`"AA"' `"AG"' `"GG"'"

When I try to use tokenize then (in order to grab each label individually) it doesn't work. I believe it has to do with the presence of all the quotes.

How can I get this to work with tokenize or is there a better alternative?

Thanks,
-Elwood Cook



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________

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