looping over a list of filter expressions: problem with NSE in map2 call within mutate
问题 I have defined a list of expressions containing arguments I want to pass to a dplyr::filter call. library(tidyverse) # using tidyr 1.0.0 cond_filter <- list(expr(1 > 0), # condition to select all rows expr(Species == "setosa"), expr(Species != "virginica")) I further have a data frame that I put into a list-column and which I then expand by the number of filter expressions in said list. iris_nest <- iris %>% nest(data = everything()) %>% expand_grid(., filters = cond_filter) In a last step I