Message-ID: <20030506145906.AFFA33B89D@mbox2.su.se>
Date: 2003-05-06T14:59:06Z
From: Mahmood ARAI
Subject: Sum by categorical variable
In-Reply-To: <6C9A2D9477234140A56E9D1B073B28E901DB5C@gitmanex01.git.generali.ch>
De Amicis Fabrizio (G.I.T.) writes:
> Dear R-list,
> I have two variables (numerical and categorical) and would like to have the
> sum (and maybe some other statistics) of the numerical variable by the
> categorical one.
> Can you help me,
> Thank you,
> Fabrizio
>
>
> ---------------------------------------------------------------
> Fabrizio De Amicis
>
> IT Department
> Generali Information Technologies - (GIT)
>
> Centro Galleria 2,
> Via Cantonale
> CH - 6928 Manno - Switzerland
> Tel +41 91 806 6220
> Fax +41 91 806 6298
> E-mail: fabrizio.deamicis at git.generali.ch
>
>
>
>
> ************************************************************************
> The information in this email is confidential and may be legally... {{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
ave is what your are looking for.
See ?ave.
mahmood arai
http://www.ne.su.se/~ma