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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to