|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: subinstr "
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/