[R] "stepwise" sum

behave dethlef1 at hotmail.com
Wed Oct 5 16:06:30 CEST 2011


dear R-Community

is there a function which sums data "stepwise"

exp: 

2
1
4
5

Desired  result

2 = 2
2+1 = 3
2+1+4 = 7
2+1+4+5 = 12

Is there a built in function for this?

Thx
Dom


--
View this message in context: http://r.789695.n4.nabble.com/stepwise-sum-tp3874606p3874606.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list