I have a data frame with the following values
street date counts
A 2011-01-07 4
B 2011-01-07 2
A 2011-01-08 2
B 2011-01-08 6
I want the previous counts by date to be added with the new counts this is the output that I require how could I achieve this in R using dplyr or other libraries.
street date counts
A 2011-01-07 4
B 2011-01-07 2
A 2011-01-08 6
B 2011-01-08 8