View source: R/convert_to_index.R
convert_to_index | R Documentation |
This functions converts a pollutant value in its original units into one of the 5 categories used by the Mexican government to communicate to the public how polluted the air currently is and its health risks.
convert_to_index(value, pollutant)
value |
a numeric vector of values to convert to index |
pollutant |
type of pollutant. A vector of one or more of the following options:
|
the IMECA value of the concentration indexed into 5 categories
BUENA - Good: 0-50 minimal health risk
REGULAR - Regular: 51-100 moderate health effects
MALA - Bad: 101-150 sensitive groups may suffer adverse heatlh effects
MUY MALA - Very Bad: 151-200 everyone can experience negative health effects
EXTREMADAMENTE MALA - Extremely Bad: > 200 serious health issues
Other convert functions:
convert_to_imeca()
convert_to_index(c(12.1, 215, 355), c("PM25", "PM10", "PM10"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.