# These statements are equivalent:
quote(function(x, y=1) x+y)
call("function", pairlist(x=missing_value(), y=1), quote(x+y))
# These statements are also equivalent:
quote(df[,1])
substitute(df[row,col], list(row = missing_value(), col = 1))
# These statements are also equivalent:
quote(function(a, b, c, d, e) print("hello"))
call("function", as.pairlist(put(missing_value(5), names, letters[1:5])),
quote(print("hello")))
Run the code above in your browser using DataLab