I have a dataframe called returns with different columns, for instance simple. I normally access it by returns$simple. Now I need to pass these columns on to a function. I tried many things that I found here on the board (as.formula, parse, paste, etc.) and none of it worked.
test = function(x)
{
returns$x
}
test(simple)