I have a series of string variables (drug1 - drug25) that contain information on types of drugs. Below is an example of 2 of the variables and their contents:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str25 drug1 str27 drug2 "Fentanyl (0.91)" "Norfentanyl (0)" "Fentanyl (2.25)" "Norfentanyl (0.81)" "MDMA (0)" "Methamphetamine (20.98)" "MDMA (0)" "Methamphetamine (42.667)" "THC (3.29)" "" "THC (48.51)" "" "THC (24.5)" "" "Hydrocodone (0)" "Hydromorphone (0)" "Norhydrocodone (0)" "Noroxycodone (0)" "MDMA (0)" "Methamphetamine (5.417)" end
Any help would be greatly appreciated!
Thanks
0 Response to set string case to missing if a phrase is found
Post a Comment