I have the following data:
df <-
Session Volume StartTime EndTime
1 27,75 2016-01-22 17:00:33.707 2016-01-27 06:02:54.900
2 10,78 2016-01-22 14:31:22.127 2016-01-23 15:01:20.997
3 15,88 2016-01-27 12:46:18.660 2016-01-27 15:01:23.250
4 46,10 2016-01-25 16:01:34.613 2016-01-25 21:46:35.477
5 94,60 2016-01-27 05:38:06.597 2016-01-27 06:08:06.027
6 15,93 2016-01-20 16:15:59.350 2016-01-21 06:06:43.933
I want to add the data for each day ( on Starttime) to receive a dataset with the total volume of all sessions for each day, so that I can plot the volume over time. E.g. on the 22th of januari 2016 a total of 38.53 has charged. So that
dfnew <-
Day TotalVolume
2016-01-22 38.53
2016-01-25 46.10
2016-01-27 110.48
etc.
What is the most efficient way to do this?