Re: [R] Problems with aggregate() function in stats package

2011-09-15 Thread Marc Schwartz
On Sep 15, 2011, at 4:07 PM, Jon Zadra wrote: > Hi, > > I'm having some problems with the aggregate() function in the {stats} > package, and the documentation doesn't address them. > > 1) Why would the first line work, but the second not? According to the help > file, it accepts a "data=" argu

[R] Problems with aggregate() function in stats package

2011-09-15 Thread Jon Zadra
Hi, I'm having some problems with the aggregate() function in the {stats} package, and the documentation doesn't address them. 1) Why would the first line work, but the second not? According to the help file, it accepts a "data=" argument. with(tsrc, aggregate(x=DistRatio, by=list(Conditi