Does R provide an object/function/method/keyword to get all function arguments?
Using an example:
function(a, b="default", ...)
would provide a
and b
as well as ...
within the function environment. Is there a statement similar to list(...)
that would also include a
and b
in the result?
Or put yet another way: a shorthand for list(a=a, b=b, ...)
, given function(a, b, ...)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…