Message-ID: <49DA201A.7000205@web.de>
Date: 2009-04-06T15:30:34Z
From: Christian Schulz
Subject: SUM,COUNT,AVG
In-Reply-To: <22905322.post@talk.nabble.com>
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
> Hi,
> I ve been searching a lot in internet..but I can t find a solution
> Attached, you find a file.
> I need for each (Materiale, tpdv, UM) to find sum,avg and count
> My idea was to aggregate for the 3 parameters ..but I don t know how to get
> the numeric value (SUM,COUNT,AVG) I need.
> Can you help me?
> thank you
>
> http://www.nabble.com/file/p22905322/ordini2008_ex.txt ordini2008_ex.txt
>