I have the following string in R
A<-"A (23) 56 hh()"
I want to get the following output
"A (23) 56 hh"
I tried the following code
B<-gsub(pattern = "()", replacement = "", x = A)
That didnt yield the desired result. How can I accomplish the same