[R] Grouping problem

2009-01-28 Thread venkata kirankumar
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

Re: [R] Grouping problem

2009-01-28 Thread David Winsemius
A vague answer is the best you should hope for with such a vague question with no sample data: ?table ?xtabs ?== A search on Frequency tables from factors should get you to the intro to R section with that name. -- David Winsemius On Jan 28, 2009, at 10:47 AM, venkata kirankumar wrote:

Re: [R] Grouping problem

2009-01-28 Thread hadley wickham
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 kiran4u2...@gmail.com wrote: Hi all, I have a problem with grouping like I have to give count of