aqi_equation: Calculate Air Quality Index (AQI) and Classification

View source: R/aqi_equation.R

aqi_equationR Documentation

Calculate Air Quality Index (AQI) and Classification

Description

takes in a vector of concentrations (of either PM2.5 or ozone) and calculates the AQI, classification (ranging from "Good" to "Hazardous"), and associated color (ranging from Green to Maroon)

Usage

aqi_equation(pollutant, concentration)

Arguments

pollutant

Either "pm2.5" or "ozone"

concentration

A vector of concentrations of that pollutant, in ug/m^3 for pm2.5 or in ppb for ozone

Value

A data frame with the columns Concentration, AQI, Class, and Color

Author(s)

Ellen Considine

Examples

aqi_equation("pm2.5", seq(0,300,10))
aqi_equation("ozone", seq(0,0.2,0.0075))

NSAPH/NSAPHutils documentation built on March 29, 2022, 3:27 a.m.