Learn R Programming

hdf5r (version 1.3.3)

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)

Arguments

definition

Definition of the function to match against

call

The call that should be matched

Value

A call with named arguments and default values

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