Skip to content
Prev 34897 / 63424 Next

(PR#14066) model.frame error with formula=~1 and na.action=na.fail

Thank you for the report -- but a bit more investigation of the root 
cause would have been even more helpful: this is not 'model.frame 
error', nor even reported by R as such.

The issue was that complete.cases() did not know how to find the 
number of rows of a 0-column data frame (it knew nothing about data 
frames). That has been changed in R-patched and R-devel, together with 
a more informative error message in other cases where the number of 
rows is unspecified.
On Sun, 15 Nov 2009, Sebastian.Wastl.Meyer at campus.lmu.de wrote:

            
That line is unnecessary: 'iris' is a visible object in package 
'datasets'.