Learn R Programming

hdf5r (version 1.3.11)

match.call.withDef: Match arguments in a call to function and add default values

Description

Match arguments in a call to function and add default values

Usage

match.call.withDef(definition, call)

Value

A call with named arguments and default values

Arguments

definition

Definition of the function to match against

call

The call that should be matched

Author

Holger Hoefling

Details

Given the definition of a function and a call, it matches the arguments so that they are named and inserts any default argument values where those are missing