I am new to R and have the following problem:
I have data in two columns, one column represents the earnings on a certain day and the other column contains the weekdays (encoded modulo 7, so for example Saturday is 0, Monday is 1 etc.). An example would be
1. 12,000|6
2. 56,000|0
3. 25,000|1
4. 35,000|2
5. 18,000|3
6. 60,000|4
7. 90,000|5
8. 45,000|6
9. 70,000|0`
Are there any R commands that I can use to find out how much is earned on all Mondays, on all Tuedays and so on?