/
README.Rmd
57 lines (40 loc) · 1.15 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
message = FALSE
)
library(Rpollution)
```
# Rpollution <img src="man/figures/logo.png" align="right" width = "15%">
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.