count_exceedance: count_exceedance

View source: R/count_exceedance.R

count_exceedanceR Documentation

count_exceedance

Description

Count the exceedances, grouped by code for species defined in name. Operated on the output of parse_exceedance()

Usage

count_exceedance(
  df,
  thresh,
  period = 1,
  exceedance_days_only = "o3_8_100",
  summary = c("none", "total", "average")[1],
  summary_name = NULL,
  total = FALSE,
  total_name = NULL
)

Arguments

df

output of parse_exceedance()

thresh

air quality threshold definitions

period

interger or vector of interger periods to count. default c(1,8,24) i.e, count hourly, 8 hourly and daily exceednces defined in thresh

exceedance_days_only

names of threshold groups that where multiple exceedances in one calenday day only count as one.
useful to remove overcounting of rolling thresholds

summary

one of c("none", "total", "average").

  • none - count per code

  • total - sum across all codes

  • average - average per code

None returns exceedances per group defined by the code column

summary_name

if using total or average name the new code grouping

Author(s)

W. S. Drysdale


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