0

horror.movie

I tried this but it's not working.

horror_movies %>% dplyr::filter(grepl("$", budget))
Muon
  • 1,294
  • 1
  • 9
  • 31
Eagle80
  • 3
  • 2

1 Answers1

0

You need to add fixed=TRUE as an argument to grepl. For example...

horror_movies[grepl('$', horror_movies$budget, fixed=TRUE),]

See this answer for a detailed explanation.

Muon
  • 1,294
  • 1
  • 9
  • 31