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.
___
Prof Brian Ripley wrote:
> From the help page (?unique)
>
> Value:
>
> For a vector, an object of the same type of 'x', but with only one
> copy of each duplicated element. No attributes are copied (so the
> result has no names).
>
> Please take your own advice and `learn by doi
Hello!
I wish that one could use
\method{myMethod}{classA, classB}(x, arg1, arg2, arg3, ...)
instead of
\method{myMethod}{classA}(x, arg1, arg2, arg3, ...)
\method{myMethod}{classB}(x, arg1, arg2, arg3, ...)
when methods for both classA and classB have same set of arguments. This
way there wou
On 8/9/06, Gabor Grothendieck <[EMAIL PROTECTED]> 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] "omi
What is the "na.omit" attribute, and why is that relevant to
model.frame.default (where na.action is an argument and only defaults to
na.omit)?
Consider
> DF <- data.frame(x = c(1, 2, 3), y = c(0, 10, NA))
> attr(model.frame(y ~ x, DF), "na.action")
3
3
attr(,"class")
[1] "omit"
so the *na.act