How to remove all occurrences of an underscore before a pattern in R? In R, how do we remove all occurrences of an underscore before a pattern?