I have a data frame of dates from 2013 to 2018, with a daily precipitation value for a location I am studying. I want to calculate the mean precipitation of each date for the years mentioned above. For example, the mean precipitation on June 1 from 2013 to 2018. I will use this daily mean to then study the daily deviations from the mean daily precipitation from 2013 to 2018.
This is what my data looks like DataTable
I don't know how to write the loop for this, so I don't have any code to show.
The output for this loop should be a list of dates of the year with a long term mean for each date, something like below:
Date (dd/mm) Mean
01-01 1.5
02-01 4.6
03-01 5
.
.
31-12 6
Thank you!