Answers for "remove rows where column is a particular string rstudio"

R
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 "remove rows where column is a particular string rstudio"

Browse Popular Code Answers by Language