Statalist


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

Re: st: subinstr "


From   "Eva Poen" <eva.poen@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: subinstr "
Date   Tue, 8 Jul 2008 11:32:53 +0100

Paolo,

you need compound quotes:
left quote `"
right quote "'

leads to:

subinstr(diagnosi,`"""',"",.)

Hope this helps,
Eva


2008/7/8 Paolo Grillo <paolo.grillo@guest.unimi.it>:
> 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 paolo.grillo@guest.unimi.it
> *
> *   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/
>
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index