Skip to content
Prev 176263 / 398503 Next

SUM,COUNT,AVG

A good package for this sort of questions is doBy, too.

library(doBy)
summaryBy( tpdv + UM + qta ~ Materiale ,data=data,FUN=c(sum,length,mean))

regards, Christian