I wish to use grep to return the first word each rowname in R. Rownames have the format `Firstword_secondword_thirdword`, and I need to return the first word, excluding the underscore.

I'd usually nut it out on my own but I'm quite pressed for time!