Statalist


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

st: Replace based on 1 word in middle of a sentence?


From   "Ziad El-Khatib" <[email protected]>
To   [email protected]
Subject   st: Replace based on 1 word in middle of a sentence?
Date   Thu, 18 Oct 2007 05:41:35 -0700

Hi
i am used to Excel to use * sign before and after a word, when looking
for a word in middle of sentence, for example

countif (A1:A10, "*medeci*")

anyway it is possible to use something similar in STATA for command -replace-?
like replace var2 = "medecine" if var1 == "*medeci*" ?


Thank you and best regards
ziad
*
*   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