Skip to content
Prev 33431 / 63424 Next

rowSums, rowMean and rowCumSums?

Hi,
you can compute cumsums for each row with
t(apply(x, 1, cumsum))
As this is a simple, direct implementation, I see no reason to make it
a named function.

Cheers
-Felix


2009/7/31 Christophe Dutang <dutangc at gmail.com>:
-- 
Felix Andrews / ???
Postdoctoral Fellow
Integrated Catchment Assessment and Management (iCAM) Centre
Fenner School of Environment and Society [Bldg 48a]
The Australian National University
Canberra ACT 0200 Australia
M: +61 410 400 963
T: + 61 2 6125 1670
E: felix.andrews at anu.edu.au
CRICOS Provider No. 00120C