Running totals
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.
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.