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

2006-08-09 Thread hayfietj
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. ___

Re: [Rd] unique.default() drops names (PR#9130)

2006-08-09 Thread Gregor Gorjanc
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

[Rd] Wishlist: multiple classes in \method{}{} (Rd markup) (PR#9135)

2006-08-09 Thread gregor . gorjanc
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

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

2006-08-09 Thread Gabor Grothendieck
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

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

2006-08-09 Thread ripley
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