Skip to content

help with rowsum/aggregate type functions

3 messages · Charles Murtaugh, Henrique Dallazuanna, John Kane

#
Try this:

aggregate(list(Number=x$Number), by=list(Gene_Name=x$Gene_Name), sum)
On 25/03/2008, Charles Murtaugh <murtaugh at genetics.utah.edu> wrote:

  
    
#
See the reshape package. 

library(reshape)
yy <- melt(xx, id=c("Gene.name")) 
cast(yy, Gene.name~variable, sum)

--- Charles Murtaugh <murtaugh at genetics.utah.edu>
wrote:
__________________________________________________________________
[[elided trailing spam]]