Extends ddply to allow calculation of cumulative quantities.