clean_neg | R Documentation |
Replaces negative values in a vector of air quality readings with CAAQS-compliant values
clean_neg(x, type = c("pm25", "ozone", "so2", "no2"))
x |
vector of air quality readings |
type |
type of air quality readings; one of: "pm25", "ozone", "so2", "no2" |
For gases (type = "ozone", "so2", or "no2"), replaces values
\le
-5 with NA
and values between -5 and 0 with 0. For type =
"pm25", replaces values \le
-3.5 with NA
and values between
-3.5 and 0 with 0.
a vector of the same length as x with negative values replaced with CAAQS compliant values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.