I have some transaction data for several years that I want to analyze in R. It has the following structure:
dates weekday returns
1 2003-10-31 Mi 425.36
2 2003-10-31 Mi 1504.50
3 2003-10-31 Mi 170.14
4 2002-03-12 Mo -215.80
5 2002-02-08 Mi 0.00
6 2002-04-17 Do 215.80
I want to compute the mean return per weekday.Can anyone help me?