Dear reader,
I am dealing with a database containing executives and their title. Two string variables are attached: title and titleann, some examples of the string values of the variables:
title
titleann
I want to generate a dummy variable being equal to 1 or "CFO" when the text includes "chief financial officer"/"principal financial officer"/"chief finance officer". Under variable title, "executive vp & chief finance officer" is one observation. The term I am searching for may be part of a string variable, rather than the only value in that specific cell.
Does anyone know how to generate such a dummy from a string variable containing more than only the item I am searching for?
Kind regards,
Ilse
I am dealing with a database containing executives and their title. Two string variables are attached: title and titleann, some examples of the string values of the variables:
title
group vp-structures & systems, maintenance, repair and overhaul |
chairman, president & CEO |
vp, general counsel & secretary |
vp & chief finance officer |
group vp-aviation supply chain |
group vp-structures & systems, maintenance, repair and overhaul |
president & CEO |
president & chief operating officer |
executive vp & chief finance officer |
senior vp; president-Integrated Solutions Group |
chairman, president & CEO |
vp-worldwide operations |
group vp-structures & systems, maintenance, repair and overhaul |
Chairman, Chief Executive Officer and Chairman of Executive Committee |
vp, general counsel & secretary |
President, Chief Operating Officer of Expeditionary Services and Director |
Vice President of Commercial Development |
group vp-structures & systems, maintenance, repair and overhaul |
president & CEO |
president & chief operating officer |
Chairman, Chief Executive Officer and President |
senior vp; president-Integrated Solutions Group |
chairman, president & CEO |
vp-worldwide operations |
Does anyone know how to generate such a dummy from a string variable containing more than only the item I am searching for?
Kind regards,
Ilse
Comment