Re: [R] Grouping data in dataframe

2009-07-15 Thread Timo Schneider
Am Mittwoch, den 15.07.2009, 00:42 -0500 schrieb markle...@verizon.net: Hi! > Hi: I think aggregate does what you want. you had 34 in one of your > columns but I think you meant it to be 33. > > DF <- read.table(textConnection("ExpA ExpB ExpC Size > 1 12 23 33 1 > 2 12 24 29 1 > 3 10 22 34 1 > 4

Re: [R] Grouping data in dataframe

2009-07-15 Thread John Kane
imo Schneider wrote: > From: Timo Schneider > Subject: [R] Grouping data in dataframe > To: "r-help@r-project.org" > Received: Tuesday, July 14, 2009, 11:56 PM > Hello, > > I have a dataframe (obtained from read.table()) which looks > like > >   >    Exp

Re: [R] Grouping data in dataframe

2009-07-14 Thread Dieter Menne
Timo Schneider wrote: > > > I have a dataframe (obtained from read.table()) which looks like > > ExpA ExpB ExpC Size > 1 12 2333 1 > 2 12 2429 1 > 3 10 2234 1 > 4 25 5060 2 > 5 24 5362 2 > 6

Re: [R] Grouping data in dataframe

2009-07-14 Thread Moshe Olshansky
Try ?aggregate --- On Wed, 15/7/09, Timo Schneider wrote: > From: Timo Schneider > Subject: [R] Grouping data in dataframe > To: "r-help@r-project.org" > Received: Wednesday, 15 July, 2009, 1:56 PM > Hello, > > I have a dataframe (obtained from r

Re: [R] Grouping data in dataframe

2009-07-14 Thread Peter Alspach
Tena koe Timo ?aggregate HTH ... Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Timo Schneider > Sent: Wednesday, 15 July 2009 3:56 p.m. > To: r-help@r-project.org > Subject: [R] Grouping

[R] Grouping data in dataframe

2009-07-14 Thread Timo Schneider
Hello, I have a dataframe (obtained from read.table()) which looks like ExpA ExpB ExpC Size 1 12 2333 1 2 12 2429 1 3 10 2234 1 4 25 5060 2 5 24 5362 2 6 21 4961 2 now I want to