s-news
[Top] [All Lists]

collapse to unique row.names using mean()

To: s-news@lists.biostat.wustl.edu
Subject: collapse to unique row.names using mean()
From: "Phillip Staford" <biomining@hotmail.com>
Date: Sun, 19 Jan 2003 00:33:12 -0700
Dear S group;

I'm looking for a very low-memory (slow is OK, but memory is critical here) method to collapse a data.frame that has a mixture of unique and replicated row.names. What's the best way to do this without burning unnecessary memory?
A  3
A  2
A  1
B  3
C  2
C  4
into
A  2
B  3
C  3


Thanks for any suggestions, the obvious ways are quick but not memory efficient I think.

Phillip

_________________________________________________________________
MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail


<Prev in Thread] Current Thread [Next in Thread>