Hi,
I am trying to identify the date when a drug reached Phase III in the clinical trial process. My data is in the form of a string (example below). I want two things:
1. to extract the earliest date that starts with 19. So in the example below that would be 1984
2. to extract all dates that start with 19.., split into a separate column for each date. So, the example below, I would ideally have two new columns for the three dates (since 1988 is repeated) - 1st with 1984, 2nd with 1988
"It was effective in: sarcoidosis; severe herpes simplex infections (1st World Conf Inflamm Antirheum Analg Immunomod (Venice), 1984, 140-147); secondary immunodeficiency after major surgery (1st Int Cong Imm Conseq Trauma Shock Sepsis (Munich), 1988, Abs OR45); psoriasis (3rd Eur Symp Psoriasis (Trieste), 1988, P32)"
Any guidance would be much appreciated!
Thanks,
Karishma
Related Posts with Extracting multiple years mentioned in a string
Xtqreg-qunaitle regression in a panel dataDear Joao Santos Silva I am trying to run fixed effects quantile regression for a panel of 260 firm…
xtline and standard deviationHello everyone, I need to draw a lineplot for paneldata. I used the following command: collapse (m…
Help with outputting Mixed command results to ExcelHello, I hope you could help me, I have spent days trying to figure this out. I am trying to output…
Premature DeindustrializationHello everyone, I'm testing premature deindustrialization as Rodrik (2015) I regress manufacture em…
Merging two files on multiple criteria and imperfect matching?Hi, I have two data files I want to merge. The issue is I don't have an ID column shared by both fil…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting multiple years mentioned in a string
Post a Comment