maDotsMatch {marray} | R Documentation |
This function may be used to replace default arguements for any functions to user supplied parameters.
maDotsMatch(dots, defaults)
dots |
List of user supplied argements, e.g. from |
defaults |
List of formal arguments of a function, e.g. from the
function |
args |
List of argument of a function. |
Jean Yee Hwa Yang
dots<-list(x=1:10, y=11:20) argsfun <- maDotsMatch(dots, formals(args(plot))) do.call("plot", argsfun)