Good morning,
I have a string variable which different lengths and words inside. My goal is to generate different dummy variables if inside the string some words arise:
Like:
which is the right syntax for asking something like that??
Thank you in advance for your time, wishing you all a pleasant week
I have a string variable which different lengths and words inside. My goal is to generate different dummy variables if inside the string some words arise:
Like:
Code:
gen wellness_table = 1 if wellness --contains-- "table"
Thank you in advance for your time, wishing you all a pleasant week
Comment