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: AW: Search for string values in dataset??
From
"Wiemann, Markus" <[email protected]>
To
<[email protected]>
Subject
st: AW: Search for string values in dataset??
Date
Mon, 21 Feb 2011 16:17:19 +0100
Hi Miyu,
try the -strmatch- command.
For example:
gen GmbH = 1 if strmatch(variablename, "*GmbH*")
Best
Markus
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von miyu Lee
Gesendet: Montag, 21. Februar 2011 16:12
An: [email protected]
Betreff: st: Search for string values in dataset??
Is there ANY way to search for specific string values in a dataset
with string variables? For example: I am searching for all entries
showing the part "GmbH" in a vector with firm names. I have a bad
feeling about this!
Best
Miyu
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/