Answers for "r remove rows with specific string"

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

library(stringr)

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

Code answers related to "r remove rows with specific string"

Browse Popular Code Answers by Language