That's beyond my knowledge of plyr...S On Wednesday, May 11, 2011 at 12:31 PM, Justin wrote: > Scott Chamberlain <scttchamberlain4 <at> gmail.com> writes: > > > > > How about this: > > > > ddply(test.set, .(site), colwise(max)) > > On Wednesday, May 11, 2011 at 11:46 AM, Justin wrote: > > > test.set<-data.frame(site=1:10,x=.Random.seed[1:100],y=rnorm(100)) > > > means<-ddply(test.set,.(site),mean) > > > means > > > > [[alternative HTML version deleted]] > > Thats the ticket! So mean is already set up to operate on columns but max and > min are not? I guess its not too important now I know ... but whats going on > in > the background that makes that happen? > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
[[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.