Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: subinstr "


From   Paolo Grillo <[email protected]>
To   [email protected]
Subject   st: subinstr "
Date   Tue, 08 Jul 2008 12:26:05 +0200

Dear all,
I am facing on this problem: how can I treat -"- as a normal character in order to be recognized with string function.
As example I have - replace diagnosis= subinstr(diagnosis,":","",.) - but I would like to replace every " instead of :.
The command would be - replace diagnosi= subinstr(diagnosi," " ","",.)- , but it doesn't work (too few quotes).
Any help or idea?

Thank you very much

Paolo Grillo

____________________________________________
Paolo Grillo, MD
Nephrologist
Statistician
Occupational Physician
Epidemiology Unit
Department of Preventive Medicine
IRCCS "Ospedale Maggiore Policlinico, Mangiagalli e Regina Elena"
Via San Barnaba 8
20122 Milan - ITALY
Tel: +39 02 503-20148
Fax: +39 02 503-20126
E-Mail [email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index