Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openvironment/Rpollution
R functions to work with air pollution data
https://github.com/openvironment/Rpollution
Last synced: 3 months ago
JSON representation
R functions to work with air pollution data
- Host: GitHub
- URL: https://github.com/openvironment/Rpollution
- Owner: openvironment
- License: mit
- Created: 2018-02-05T22:10:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T01:32:12.000Z (over 3 years ago)
- Last Synced: 2024-04-26T01:25:28.941Z (7 months ago)
- Language: HTML
- Size: 84 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- open-sustainable-technology - Rpollution - The goal of Rpollution is to assemble R functions to analyze air pollution data. (Natural Resources / Air Quality)
README
---
output: github_document
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
message = FALSE
)library(Rpollution)
```# Rpollution
The goal of `Rpollution` is to assemble R functions to analyse air pollution data.
## Installation
You can install `Rpollution` from github with:
```{r gh-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("openvironment/Rpollution")
```## CETESB scraper
To scrape data from the CETESB qualar system, use the function `scraper_cetesb()`.
```{r example, eval = FALSE}
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`.
```{r}
cetesb_param_ids
``````{r}
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.