Execute a Function Call

DESCRIPTION:

Executes a function call, given the name of the function and the argument list.

USAGE:

do.call(what, args=list()) 

REQUIRED ARGUMENTS:

what
character string, giving the name of the function to be called.

OPTIONAL ARGUMENTS:

args
argument list of the (evaluated) arguments to the called function. the names attribute of args gives the argument names.

VALUE:

the result of the evaluated call.

SEE ALSO:

creates the call without doing the evaluation.

EXAMPLES:

do.call("boxplot", list(split(x, group))) 
# equivalent to boxplot(split(x,group))  
do.call("dist", list(x, metric="binary"))