dplyr unquoting does not work with filter function
问题 maybe I am missing something, but I can't seem to make dplyr's unquoting operator to work with the filter function. It does with with select, but not with filter... Example set.seed(1234) A = matrix(rnorm(100),nrow = 10, ncol = 10) colnames(A) <- paste("var", seq(1:10), sep = "") varname_test <- "var2" A <- as_tibble(A) select(A, !!varname_test) #this works as expected # this does NOT give me only the rows where var2 # is positive (result1 <- filter(A, !!varname_test > 0)) # This is how the