Is it possible to use the !!!
like so:
dplyr::count(df, rlang::`!!!`(rlang::syms(variables)))
instead of:
dplyr::count(df, !!!syms(variables))
EDITED:
It is not possible.
So now the question becomes what is the alternative to using !!!
?
Instead of using the rlang
, we may use all_of
with across
library(dplyr)
df %>%
count(across(all_of(variables)))