[R] SUM,COUNT,AVG

Gabor Grothendieck ggrothendieck at gmail.com
Mon Apr 6 14:34:06 CEST 2009


I gather you have an SQL background since those are SQL functions.
Check out the sqldf R package and the many examples on the home
page:

http://sqldf.googlecode.com

and in ?sqldf

That may ease the transition from SQL to R.

On Mon, Apr 6, 2009 at 5:37 AM, calpeda <mauro.biasolo at calpeda.it> wrote:
>
> 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
> --
> View this message in context: http://www.nabble.com/SUM%2CCOUNT%2CAVG-tp22905322p22905322.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>




More information about the R-help mailing list