Use [[ instead of $. x$y is short hand for x[["y"]].
[[
$
x$y
x[["y"]]
my_helper <- function (my_param) { levels(diamond[[my_param]]) } my_helper("cut")
1.4m articles
1.4m replys
5 comments
57.0k users