From thomas@biostat.washington.edu  Wed Sep 10 22:26:18 1997
From: thomas@biostat.washington.edu (Thomas Lumley)
Date: Wed, 10 Sep 1997 14:26:18 -0700 (PDT)
Subject: R-alpha: model.frame
In-Reply-To: <x2vi096s27.fsf@bush.kubism.ku.dk>
Message-ID: <Pine.SUN.3.95.970910141237.4854E-100000@troi>

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: model.frame
Thomas Lumley