r drop rows containing string code example
Example 1: delete all rows that contain a string in R
library(dplyr)
df %>%
filter(!grepl('REVERSE', Name))
Example 2: delete all rows that contain a string in R
df[ grep("REVERSE", df$Name, invert = TRUE) , ]