I have a function
my_function <- function(input_1, input_2){
a = cbind(df$input_1, df$input_2)
}
I want to allow an input parameter such that it can be put in as a $ sign column reference, as shown in the function. I know that this directly won't work. Perhaps, some sort of paste function will work? I'm not sure.
Does anyone know how to do that?
Thanks in advance!!