[prev in list] [next in list] [prev in thread] [next in thread]
List: r-devel
Subject: R-alpha: model.frame
From: Thomas Lumley <thomas () biostat ! washington ! edu>
Date: 1997-09-10 21:26:18
[Download RAW message or body]
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic