Re: [R] cumsum for matrix

2010-03-18 Thread Jorge Ivan Velez
Hi ManInMoon, Perhaps the following apply(yourmatrix, 2, cumsum, na.rm = TRUE) ? See ?cumsum and ?apply for more information. HTH, Jorge On Thu, Mar 18, 2010 at 10:01 AM, ManInMoon <> wrote: > > IIs there an equivalent of cumsum for a matrix? i.e cumsum is applied to > each > column ? > > >

[R] cumsum for matrix

2010-03-18 Thread ManInMoon
IIs there an equivalent of cumsum for a matrix? i.e cumsum is applied to each column ? -- View this message in context: http://n4.nabble.com/cumsum-for-matrix-tp1597985p1597985.html Sent from the R help mailing list archive at Nabble.com. __ R-help@