View source: R/create7DayMovingAverage.R
create7DayMovingAverage | R Documentation |
'createDailyMeanPlot' returns a plot which calculates the mean of yVar and plots it for 2020 and 2017-2019 to compare the values for the same date over previous years. This assumes the
create7DayMovingAverage(dt, avgVar, byVars)
dt |
a data table with a summary variable you want to average |
avgVar |
the variable you want to average |
byVars |
the variables you want to group by (e.g. obsDate and compareYear) as a vector thus: byVars <- c("obsDate", "compareYear") |
Ben Anderson, b.anderson@soton.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.