View source: R/parse_year_comp.R
parse_year_comp | R Documentation |
Compare a year's timeseries to previous years.
parse_year_comp( df, comp_year = 2020, species = c("no2", "pm25", "o3"), rolling_width = 15, grp = NULL, by_code = F, city = NULL )
df |
data.frame of site data |
comp_year |
what year should be compared, note currently only year previous to this will be compared |
species |
names of speices to perform comparison on |
rolling_width |
width of the rolling median in days |
grp |
optional grouping label - it is needed less now the function supports grouping by code |
by_code |
logical, should the function be applied to each code group individually? default false |
W. S. Drysdale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.