Answers for "delete all rows that contain a string in R"

R
0

delete all rows that contain a string in R

library(dplyr)

df %>% 
  filter(!grepl('REVERSE', Name))
Posted by: Guest on May-24-2020
0

delete all rows that contain a string in R

df[ grep("REVERSE", df$Name, invert = TRUE) , ]
Posted by: Guest on May-24-2020
0

delete all rows that contain a string in R

library(stringr)

df %>% 
  filter(!str_detect(Name, 'REVERSE'))
Posted by: Guest on May-24-2020

Code answers related to "delete all rows that contain a string in R"

Browse Popular Code Answers by Language