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: Generating String variable containing `" & "'


From   "Dudekula, Anwar" <[email protected]>
To   Statalist Statalist ‎[[email protected]]‎ <[email protected]>
Subject   st: Generating String variable containing `" & "'
Date   Mon, 6 Jan 2014 11:09:17 +0000

Hello, 

This  seems to be an obvious question but somehow , I  am not able to get it . 

I have  two string variables   x  , y as follows 

Index         x                                 y  
1	       74170	            COMPUTED TOMOGRAPHY, ABDOMEN; WITHOUT CONTRAST MATERIAL
2	       73725        MAGNETIC RESONANCE ANGIOGRAPHY, LOWER EXTREMITY
.
.
.
.
.
.
1000


I want to generate a string variable z , in the following format corresponding the observations 1, 2  :   

label define singleDXCCSlabel 74170  `"COMPUTED TOMOGRAPHY, ABDOMEN; WITHOUT CONTRAST MATERIAL"', modify
label define singleDXCCSlabel 73725  `"MAGNETIC RESONANCE ANGIOGRAPHY, LOWER EXTREMITY"', modify
.
.
.
.
.


thank you very much for your time 

Thank you, 
Yours Sincerely, 
Anwar 




*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index