knitr::opts_chunk$set( collapse = TRUE, comment = "#>", message = FALSE ) library(Rpollution)
The goal of Rpollution
is to assemble R functions to analyse air pollution data.
You can install Rpollution
from github with:
# install.packages("remotes") remotes::install_github("openvironment/Rpollution")
To scrape data from the CETESB qualar system, use the function scraper_cetesb()
.
library(Rpollution) scraper_cetesb( parameter = 63, station = 72, start = "01/01/2018", end = "31/01/2018", login = "login", password = "password" )
To see a list of parameter and station IDs, use the objects cetesb_param_ids
and cetesb_station_ids
.
cetesb_param_ids
cetesb_station_ids
If you substitute the values login
and password
by your login and password from the Qualar system, this example will return the hourly NO concentrations from the Pinheiros station for January 2018.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.