This took me a while to figure out and so I thought I would post this as future reference. Let’s say I have the
mtcarsdata and I want to filter for just the rows with
cyl == 6. I would do something like this:
mtcars %>% filter(cyl == 6)
What if I had the filter condition as a string instead?
Read on to see how you can do this. Given the answer, I wonder if there’s any chance that could be turned into an injection vulnerability. H/T R-Bloggers