Message-ID: <Pine.SUN.3.95.970910141237.4854E-100000@troi>
Date: 1997-09-10T21:26:18Z
From: Thomas Lumley
Subject: R-alpha: model.frame
In-Reply-To: <x2vi096s27.fsf@bush.kubism.ku.dk>
model.frame(,data=foo) requires foo to be a data.frame in R-0.50-a4.
Previously, and in S, a list is sufficient.
A fix is to add
if (!is.data.frame(data) & !is.null(data))
data <- as.data.frame(data)
before the first line of terms.formula
Thomas Lumley
------------------------------------------------------+------
Biostatistics : "Never attribute to malice what :
Uni of Washington : can be adequately explained by :
Box 357232 : incompetence" - Hanlon's Razor :
Seattle WA 98195-7232 : :
------------------------------------------------------------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-