Skip to content
Prev 248724 / 398506 Next

Plotting accumulated data

On Jan 28, 2011, at 3:07 PM, Ottar Kvindesland wrote:

            
Perhaps:

plot(data$DATETIME, cumsum(data$TRN_S) )

Can probably also be generalized to cumulative sums within IDs using  
ave() or tapply().
David Winsemius, MD
West Hartford, CT