Is there a way to use a string variable as a filter argument in dplyr? For instance:
filter(iris,Sepal.Length > 6)
will be replaced by
string <- 'Sepal.Length > 6'
filter(iris,string)
Basically, I am looking for the entire filter string as a variable since I am creating the filter string pragmatically. Thanks for any help.
source
share