[R] Summation resulting in a list?

mousy0815 mousy0815 at gmail.com
Mon Jul 11 21:49:43 CEST 2011


Use the tapply() function as in tapply(b,m,sum)

HTH,
Daniel



Don't "b" and "m" have to be the same length then? What if they're not? And
would I just put the tapply() instead of everything else in my summing
function?
(Sorry! I'm kind of newbie at this -_-;)

--
View this message in context: http://r.789695.n4.nabble.com/Summation-resulting-in-a-list-tp3660514p3660642.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list