aqi_category: Categorize API numbers

Description Usage Arguments Value See Also Examples

View source: R/aqi_category.R

Description

As described in Air Quality 101, the AQI is divided into a number of categories that indicate the potential health impacts of air conditions. For example, a value of 23 corresponds to "Good", and is displayed with a green color.

aqi_category translates a given AQI number to it's category descriptor.

aqi_category_number TODO

aqi_category_color TODO

Usage

1
2
3
4
5

Arguments

aqi

A numeric Air Quality Index (AQI) value

Value

aqi_category returns a string with the AQI Category Descriptor

aqi_category_number returns a numeric value 1-6 indicating the corresponding AQI category number

aqi_category_color returns a string containing the hexidecimal color code associated with the corresponding AQI category number (e.g., #00E400 for "Good)

See Also

Air Quality 101

Examples

1
2
3

briandconnelly/aiR documentation built on Sept. 24, 2020, 10:31 a.m.