[R] Running totals

Mark Carter mcturra2000 at yahoo.co.uk
Mon Nov 14 10:30:09 CET 2011


>From: Joshua Wiley <jwiley.psych at gmail.com>


>dat$RTotal <- cumsum(dat$BAL)



Wow, that's really great. I'm starting to really enjoy using R. My statistical needs are not that great, but I love the way that R handles tabular data.




More information about the R-help mailing list