Re: [R] aggregating strings

2009-07-28 Thread Bert Gunter
Biostatistics -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Dry, Jonathan R Sent: Tuesday, July 28, 2009 8:35 AM To: r-help@r-project.org Subject: [R] aggregating strings I am currently summarising a data set by collapsing data based on

[R] aggregating strings

2009-07-28 Thread Dry, Jonathan R
I am currently summarising a data set by collapsing data based on common identifiers in a column. I am using the 'aggregate' function to summarise numeric columns, i.e. "aggregate(dat[,3], list(dat$gene), mean)". I also wish to summarise text columns e.g. by concatenating values in a comma sep