Skip to content
Prev 214752 / 398500 Next

Adding matrix rows that have the same name?

Try this:

aggregate(as.data.frame(dum.mat.temp), list(row.names(dum.mat.temp)), sum)
On Tue, Mar 23, 2010 at 6:15 PM, Sarah Berke <skberke at gmail.com> wrote: