[R] Grouping problem

hadley wickham h.wickham at gmail.com
Wed Jan 28 17:12:59 CET 2009


You might want to have a look at the plyr package,
http://had.co.nz/plyr, which includes tools for performing this sort
of grouping.

Hadley

On Wed, Jan 28, 2009 at 9:47 AM, venkata kirankumar
<kiran4u2all at gmail.com> wrote:
> Hi all,
> I have a problem with grouping like I have to give count of employes in each
> department like
>
> if in one company there is departments like
> Mechanical, Computer, Fitting, electronics and Chemical
>
> hear I have to retreave the number of employes in each department and as
> well as
> I have to retreave number of John's in each department
>
> is there any function is there which can solve my problem
> i tried with    subset();
> but it is retreaving one department's data only
> can anyone suggest what I have to do for this
>
>
> thanks in advance
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



-- 
http://had.co.nz/




More information about the R-help mailing list