Re: [R] manipulating "by" lists and "ave()" functions

2011-07-11 Thread Matthew Dowle
Users of package 'unknownR' already know simplify2array was added in R 2.13.0. They also know what else was added. Do you? http://unknownr.r-forge.r-project.org/ "Joshua Wiley" wrote in message news:canz9z_j+trwoim3scayuaruors+8hyc30pmt_thiex6qmto...@mail.gmail.com... > On Sat, Jul 9, 2011

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-09 Thread Joshua Wiley
On Sat, Jul 9, 2011 at 7:32 AM, David Winsemius wrote: > > On Jul 9, 2011, at 9:44 AM, Berry Boessenkool wrote: >> >> >> Maybe I'm missing something, but in what package do I find that function? >> >>> simplify2array(b) >> >> Fehler: konnte Funktion "simplify2array" nicht finden >> # Function wasn

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-09 Thread David Winsemius
-- From: ivo.we...@gmail.com Date: Fri, 8 Jul 2011 16:22:18 -0700 To: wdun...@tibco.com CC: r-h...@stat.math.ethz.ch Subject: Re: [R] manipulating "by" lists and "ave()" functions It does!! why is this function not mentioned in the "See also"

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-09 Thread Berry Boessenkool
; > I think you want. > > > > Bill Dunlap > > Spotfire, TIBCO Software > > wdunlap tibco.com > > > > > -Original Message----- > > > From: r-help-boun...@r-project.org > > > [mailto:r-help-boun...@r-project.org] On Behalf Of ivo welch >

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-08 Thread ivo welch
r-help-boun...@r-project.org > > [mailto:r-help-boun...@r-project.org] On Behalf Of ivo welch > > Sent: Friday, July 08, 2011 3:43 PM > > To: r-help > > Subject: [R] manipulating "by" lists and "ave()" functions > > > > dear R wizards---more igno

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-08 Thread William Dunlap
8, 2011 3:43 PM > To: r-help > Subject: [R] manipulating "by" lists and "ave()" functions > > dear R wizards---more ignorance on my part, exacerbated by too few > examples in the function documentations. > > > d <- data.frame( id=rep(1:3,3), x=rn

Re: [R] manipulating "by" lists and "ave()" functions

2011-07-08 Thread Joshua Wiley
Hi Ivo, See inline. On Fri, Jul 8, 2011 at 3:42 PM, ivo welch wrote: > dear R wizards---more ignorance on my part, exacerbated by too few > examples in the function documentations. > >> d <- data.frame( id=rep(1:3,3), x=rnorm(9), y=rnorm(9)) > > Question 1: how do I work with the output of "by"?

[R] manipulating "by" lists and "ave()" functions

2011-07-08 Thread ivo welch
dear R wizards---more ignorance on my part, exacerbated by too few examples in the function documentations. > d <- data.frame( id=rep(1:3,3), x=rnorm(9), y=rnorm(9)) Question 1: how do I work with the output of "by"? for example, > b <- by( d, d$id, function(x) coef(lm( y ~ x, data=x ) )) > b