[Rd] wishlist: attribute "na.omit" added to data.frame from model.frame.default (PR#9134)

Gabor Grothendieck ggrothendieck at gmail.com
Thu Aug 10 04:16:22 CEST 2006


On 8/9/06, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> You can get this from the returned object.  Is that sufficient?
>
> > iris2 <- iris
> > iris2[1,1] <- NA
> > mf <- model.frame(Sepal.Length ~ Species, iris2, na.action = na.omit)
> > attr(mf, "na.action")
> 1
> 1
> attr(,"class")
> [1] "omit"
>
> On 8/9/06, hayfietj at mcmaster.ca <hayfietj at mcmaster.ca> wrote:
> > Full_Name: Tristen Hayfield
> > Version: 2.3.1
> > OS: Windows
> > Submission from: (NULL) (130.113.139.87)
> >
> >
> > It would be nice if model.frame.default() (and any other model.frame()
> > functions) set the "na.omit" attribute on the returned d.f, so that the caller
> > could determine what action was taken.
> >
> > ______________________________________________
> > R-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
>



More information about the R-devel mailing list