I am struggling to remove the substring before the underscore in my string. I want to use * (wildcard) as the bit before the underscore can vary:
a <- c(\
The following code works on your example :
gsub(".*_", "", a)