stats::update()
will perform the update in parent.frame()
by default, but this can cause
problems when the update is called by another function (so the parent frame is no longer the
environment the user is in).
update_in_env(object, formula., ...)
The updated model is returned.
An existing fit from a model function such as lm
,
glm
and many others.
Changes to the formula -- see update.formula
for
details.
Additional arguments to the call, or arguments with
changed values. Use name = NULL
to remove the argument name
.