[R] Seasonal weekly average

Shakeel Suleman Sh@keel@Sulem@n @ending from phe@gov@uk
Wed May 9 08:37:43 CEST 2018


I am fairly new to 'R' and would like advice on the following. I want to calculate a weekly average number of reports (e.g. of flu, norovirus) based on the same weeks for the last five years. I will then use this to plot a chart with 52 points for the average based on the last five years; another line will then plot the current year, enabling a comparison of current weekly counts against a five  year average for the same week. I would like some advice on how this can be done in 'R' . My data is disaggregated data - with dates in the format in 01/01/2018.


Shakeel Suleman

The information contained in the EMail and any attachments is confidential and intended solely and for the attention and use of the named addressee(s). It may not be disclosed to any other person without the express authority of Public Health England, or the intended recipient, or both. If you are not the intended recipient, you must not disclose, copy, distribute or retain this message or any part of it. This footnote also confirms that this EMail has been swept for computer viruses by Symantec.Cloud, but please re-sweep any attachments before opening or saving. http://www.gov.uk/PHE
	[[alternative HTML version deleted]]

More information about the R-help mailing list