[R] data frame cumulative row sum

Ragia Ibrahim ragia11 at hotmail.com
Mon Dec 8 09:18:37 CET 2014


Hi,
Kindly I had a data frame looks like this
x y  
1 3  
2 2  
3 1  
4 3  
and I want to add column z that sum cumulativly like this
x y z
1 3 3
2 2 5
3 1 6
4 3 9

how to do this?
Regards
Ragia
 		 	   		  
	[[alternative HTML version deleted]]



More information about the R-help mailing list