I need to provide column names as a character for various tidyverse functions. I read here that this is possible with !!!sums(var_names)
but it does not work out. Here is an example:
df <- data.frame(a= 1:10, b= 1:10, c= 1:10)
var <- "a"
df %>% filter(!!!syms(var) < 5)
This gives me an error but I await the same output as for
df %>%
filter(a < 5)