I need to extract the word INC or CORPORATION or INCORPORATED from the string variable provided below and code it as a new variable for that observation. The new variable inc will take the value 1 if the variable cname has any of the bold colored words mentioned above and otherwise zero.
I've been very well advised on somewhat similar issue on statalist , therefore asking for help another time since this type of problem is kind of out of my reach! Would really appreciate any kind suggestion!
Code:
* Example generated by -dataex-. For more info, type help dataex clear input strL cname "ANTHONY G. FUSSNER" "BRIAN L. PETREQUIN, ESQ." "BRIAN SIRITZKY" "MELISSA W. ACOSTA" "FULWIDER PATTON LLP" "MARGARET POLSON" "AVENTIS PHARMACEUTICALS, INC." "CLARIANT CORPORATION" "HENKEL CORPORATION" "VOLPE AND KOENIG, P.C." "SUSAN J. LILYQUIST PARALEGAL" "TEXAS INSTRUMENTS INCORPORATED" "3M INNOVATIVE PROPERTIES CO." "HEWLETT-PACKARD CO." "THOMSON MULTIMEDIA LICENSING, INC." "PATENT DOCUMENTATION CENTER/XEROX CORP." "ANOVA LAW GROUP, PLLC" "ASIA VITAL COMPONENTS CO., LTD" "DOW CORNING CORPORATION" "KIDS II, INC." "JAMES M. STOVER TERADATA CORPORATION" "NXP USA, INC. LAW DEPARTMENT" end
0 Response to Parsing a string variable to extract a particular word
Post a Comment