The column names in my data frame contain names similar to "S156 B1-1 U500 (HTA-1 0).SST RMA gene.sst-rma-gene-full-Signal". I want to remove all after parenthesis ( including parenthesis).
I have seen extract a substring in R according to a pattern and Getting a sub string from a vector of strings topics but still wondering.
I have tried sub('(HTA-1 0).*','', colnames(data))
but the output is like S156 B1-1 U500 (.
How should I remove the parenthesis?
Thanks