I would like to sum up numbers in one column as long as they have the same date associated with them. The problem is that the dates do not change on a regular basis. For example my data set would look like this:
Date Amount
12/15/2016 2300
12/15/2016 2300
12/15/2016 2300
12/15/2016 2300
12/15/2016 2300
12/15/2016 2300
12/15/2016 2300
12/15/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/19/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
12/06/2016 2300
The actual amounts are all different. The output should be the summed up amounts in one column and the corresponding dates in another. I thought about using group_by or a for loop but I got stuck with both of those since I am pretty new to R. Found a few similar questions but could not find any that answer my question. Any help is greatly appreciated.