i have this dataset
CASHPOINT_ID DT status QT_REC
1 N053360330 2016-01-01 end_of_day 5
2 N053360330 2016-01-01 end_of_day 2
3 N053360330 2016-01-02 before 9
4 N053360330 2016-01-02 before NA
5 N053360330 2016-01-03 end_of_day 16
6 N053360330 2016-01-03 end_of_day NA
i want to aggregate only rows that don't have the column status marked as "before" and keep untouched the other. Resulting dataset should look like
CASHPOINT_ID DT status QT_REC
1 N053360330 2016-01-01 end_of_day 7
3 N053360330 2016-01-02 before 9
4 N053360330 2016-01-02 before NA
5 N053360330 2016-01-03 end_of_day 16
Thanks.