Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread arun
, October 22, 2012 5:26 PM Subject: Re: [R] Counting duplicates in a dataframe On Oct 22, 2012, at 7:48 AM, arun wrote: > HI, > Another way: > dat1<-read.table(text=" > Observation Gender Dosage Alertness > 1            1      m      a        8 > 2            2     

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread asafwe
Thank you all; David -- this is, in fact, exactly what I need! Asaf -- View this message in context: http://r.789695.n4.nabble.com/Counting-duplicates-in-a-dataframe-tp4646954p4647075.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread David Winsemius
On Oct 22, 2012, at 7:48 AM, arun wrote: > HI, > Another way: > dat1<-read.table(text=" > Observation Gender Dosage Alertness > 11 m a8 > 22 m a12 > 33 m a13 > 44 m a12 > 5

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread arun
HI, Another way: dat1<-read.table(text=" Observation Gender Dosage Alertness 1    1  m  a    8 2    2  m  a    12 3    3  m  a    13 4    4  m  a    12 5    5  m  b    6 6    6  m  b 

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread arun
Hi, try this: dat1<-read.table(text=" Observation Gender Dosage Alertness 1    1  m  a    8 2    2  m  a    12 3    3  m  a    13 4    4  m  a    12 5    5  m  b    6 6    6  m  b

Re: [R] Counting duplicates in a dataframe

2012-10-22 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of asafwe > Sent: Monday, October 22, 2012 4:02 AM > To: r-help@r-project.org > Subject: [R] Counting duplicates in a dataframe > > Hello, > > I am looking at a two-way ANOVA d