Re: [R] Merge partially duplicated rows

2009-08-04 Thread Rnewbie
Thanks very much :handshake: David Winsemius wrote: > > > You might want to look at the ave function. It will calculate a > function within IDs and you can assign that as another row in the > datafrme before you exclude the duplicates. > > David Winsemius, MD > Heritage Laboratories > Wes

Re: [R] Merge partially duplicated rows

2009-08-03 Thread David Winsemius
On Aug 3, 2009, at 7:12 PM, David Winsemius wrote: On Aug 3, 2009, at 9:24 AM, Rnewbie wrote: Dear all, I have a dataset, and I wanted to merge the rows with duplicated IDs by calculating the means or medians from the duplicate rows. I tried using the command duplicated(x), but it only

Re: [R] Merge partially duplicated rows

2009-08-03 Thread David Winsemius
On Aug 3, 2009, at 9:24 AM, Rnewbie wrote: Dear all, I have a dataset, and I wanted to merge the rows with duplicated IDs by calculating the means or medians from the duplicate rows. I tried using the command duplicated(x), but it only tells where the duplicated rows are. You might wa

[R] Merge partially duplicated rows

2009-08-03 Thread Rnewbie
Dear all, I have a dataset, and I wanted to merge the rows with duplicated IDs by calculating the means or medians from the duplicate rows. I tried using the command duplicated(x), but it only tells where the duplicated rows are. Any suggestions will be appreciated. -- View this message in cont