1

Here is an example, for context...

df %>% filter(str_detect(col, "(?i)animal"))

And another one:

df1 <- df %>% filter(str_detect(col, "(?i)^([a-z]).*\\1$"))
Ronak Shah
  • 355,584
  • 18
  • 123
  • 178

0 Answers0