Skip to content
Prev 12804 / 29559 Next

complex functions using aggregate

...purely a cosmetic extension on roberts code, in stead of:

agg<-aggregate(Elevp$Elevation,by=list(Elevp$From,Elevp$To), fun)

I like to use:

agg<-with(Elevp, aggregate(Elevation,by=list(From,To), fun))

Paul
On 09/15/2011 01:31 AM, Robert J. Hijmans wrote: