Re: [Rd] aesthetics of do.call

2007-08-20 Thread deepayan . sarkar
On 8/20/07, Vincent Carey 525-2265 <[EMAIL PROTECTED]> wrote: > > > library(MASS) > G1 = glm(sp~CW, data=crabs, fam=binomial) > G2 = do.call("glm", list(sp~CW, family=binomial, data=crabs)) > > G1$call is very nice to look at > G2$call is very voluminous > > if we revise do.call to > > function (wh

[Rd] aesthetics of do.call

2007-08-20 Thread Vincent Carey 525-2265
library(MASS) G1 = glm(sp~CW, data=crabs, fam=binomial) G2 = do.call("glm", list(sp~CW, family=binomial, data=crabs)) G1$call is very nice to look at G2$call is very voluminous if we revise do.call to function (what, args, quote = FALSE, envir = parent.frame()) { if (!is.list(args))