I have a vector with a list of lists for each observation:
"Alcohol Dependence (F10.20),Hep B (Z22.51),Hep C (Z22.52),Opioid Abuse (F11.19),Pain- Back, low (M54.5),Pain- Back, upper (M54.9),Respiratory- Tuberculosis (TB) (A15.9)"
I am trying to remove the parentheses and everything in between, but I can't figure out the regex expression to use here. I am using the stringr
package, and str_replace_all
function. Any help would be greatly appreciated!