maDotsMatch: Replace default arguments of a function by user supplied...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/maDots.R

Description

This function may be used to replace default arguements for any functions to user supplied parameters.

Usage

1
maDotsMatch(dots, defaults)

Arguments

dots

List of user supplied argements, e.g. from list(...).

defaults

List of formal arguments of a function, e.g. from the function formals.

Value

args

List of argument of a function.

Author(s)

Jean Yee Hwa Yang

See Also

maDefaultPar, maDotsDefaults

Examples

1
2
3
dots<-list(x=1:10, y=11:20)
argsfun <- maDotsMatch(dots, formals(args(plot)))
do.call("plot", argsfun)

marray documentation built on Nov. 8, 2020, 6:46 p.m.