[R] further on use of expand.model.frame
John Fox
jfox at mcmaster.ca
Fri Mar 29 16:58:08 CET 2002
Dear R-help list members,
Yesterday, I described a problem that I encountered with the use of
expand.model.frame when the model object passed to this function was
created without an explicit data argument in the call.
I've had no responses, but I've been able to work around the problem by
making a change to expand.model.frame, replacing the line
rval <- eval(call("model.frame", ff, data = data, subset = subset,
na.action = I), envir)
with
rval <- if (is.null(data)) eval(call("model.frame", ff, subset =
subset, na.action = naa), envir)
else eval(call("model.frame", ff, data = data, subset =
subset, na.action = naa), envir)
This looks to me like a bug (I'm filing a report), but in any event I've
solved my problem.
Thanks for your attention,
John
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list