So I need one of the arguments to be a symbol and the usual !!enquo(column)
works, but I also need to make a dplyr
join latter in the code using the same column
.
Is there a problem with this? The code works I just want to know if it is correct.
f <- function(hello){
hello <- enquo(hello)
## something using !!hello
as_string(ensym(hello)) # here I need hello as a string
# because of by = hello in inner_join
}
f(hej)