I wanted to do left_join inside a function using function arguments to tell the code which should be 'by.x' and 'by.y'. In the example below, I wanted to use 'a2' and 'a3' arguments of function 'aa' - in place of "x1" and "a" in the 'by' parameter. AM confused how to use benefits of rlang package here
aa <- function(a1,a2,a3){
a1 %>% left_join(a1, by=c("x1"="a"))
}
xx<-data.frame(a=c(1:2), x1=c(2:3))
aa(xx,"x1","a")