parse_year_comp: parse_year_comp

View source: R/parse_year_comp.R

parse_year_compR Documentation

parse_year_comp

Description

Compare a year's timeseries to previous years.

Usage

parse_year_comp(
  df,
  comp_year = 2020,
  species = c("no2", "pm25", "o3"),
  rolling_width = 15,
  grp = NULL,
  by_code = F,
  city = NULL
)

Arguments

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

Author(s)

W. S. Drysdale


willdrysdale/AQVisR documentation built on July 24, 2022, 8:52 a.m.