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 ?
>
>
>
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@
2 matches
Mail list logo