match.call

Michael Campbell (hh26@dial.pipex.com)
Wed, 7 Jan 1998 11:47:32 -0800


I have written a model building function, it does little more than arrange
some data then call 'nls'. It looks more or less like this -

mod <-
function(formula, data, start, pars=default.pars)
{
call <- match.call()
data <- ...

obj <- nls(formula, ...)

obj
}

The call is recorded to for obvious reasons. My question is to do with
'match.call'. Is there a way of getting it to pick up arguments with
default values? For example, with the above definition, the value for the
argument 'pars' isn't returned by 'match.call'.

Michael Campbell