stringr remove part of string code example Example: delete rows from string vector r according to regex df[ grep("REVERSE", df$Name, invert = TRUE) , ]