Re: [R] Aggregate rows with same fields, within factors

2013-09-17 Thread Lorenz, David
B1 BB3 ORTHOPTERA 1 > > > A.K. > > - Original Message - > From: Andrea Goijman > To: R help > Cc: > Sent: Monday, September 16, 2013 11:09 AM > Subject: [R] Aggregate rows with same fields, within factors > > Dear R list, > > I want to aggre

Re: [R] Aggregate rows with same fields, within factors

2013-09-16 Thread Andrea Goijman
t; 16 C1 B1 BB1 NEUROPTERA 1 > 17 C1 B1 BB1 ORTHOPTERA 2 > 18 C1 B1 BB3 ORTHOPTERA 1 > > > A.K. > > - Original Message - > From: Andrea Goijman > To: R help > Cc: > Sent: Monday, September 16, 2013 11:09 AM > Sub

Re: [R] Aggregate rows with same fields, within factors

2013-09-16 Thread arun
RUE)) A.K. From: Andrea Goijman To: arun Cc: R help Sent: Monday, September 16, 2013 11:42 AM Subject: Re: [R] Aggregate rows with same fields, within factors it works, but it eliminates the rows with NA is there a way to keep those?  On Mon, Sep 16, 2013

Re: [R] Aggregate rows with same fields, within factors

2013-09-16 Thread arun
AM Subject: [R] Aggregate rows with same fields, within factors Dear R list, I want to aggregate the number of individuals 'IND' of the same ORDER, within each site and season CAMP,TRANS... but I also want to keep record of the habitat HAB and LOTE For example I have this:        

[R] Aggregate rows with same fields, within factors

2013-09-16 Thread Andrea Goijman
Dear R list, I want to aggregate the number of individuals 'IND' of the same ORDER, within each site and season CAMP,TRANS... but I also want to keep record of the habitat HAB and LOTE For example I have this: CAMP LOTE HAB TRANS IND ORDEN 1765 C1 B1 BB1 7 HEMIPTERA