Hi. I have a string variable that comprises of multiple words with no fixed order/that is not the same combination of words across rows/observations . I want to generate a new variable that is equal (extracts) certain words from the string variable. For example, my string variable may contain "Cancer, breast; worldwide, neuronal, launched". I want to generate a variable stage that extracts only "launched" for this particular row/observation. There are just five words that I want to extract from the string variable across the entire dataset and no single row/observation carries more than one of the words that I want to extract. Any guidance on how to do this will be much appreciated.
Thanks.
Related Posts with Extracting part of a string variable
consecutive failures in panel dataHi, I was hoping to get some advice on identifying consecutive failures in panel data. I am lookin…
Problem with capture confirm fileI have a folder containing some 70,000 systematically named files which I am going to merge into few…
Advice on interpretation of prtest (two sample test of proportion)Hello everybody, As a student assignment, we are conducting research on how different interventions…
First differencing and fixed effects?Dear all, I am working with a cross-section cross-time panel dataset with N = 15 (country) and T = …
how to check and address endogeneity issueHi.. I have one problem to identify and address endogeneity issue. I want to check relationship bet…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting part of a string variable
Post a Comment