A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Rpollution

The goal of Rpollution is to assemble R functions to analyze air pollution data.
https://github.com/openvironment/Rpollution

Category: Natural Resources
Sub Category: Air Quality

Last synced: 1 day ago
JSON representation

Repository metadata

R functions to work with air pollution data

README.Rmd

          ---
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.

        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 28
Total Committers: 2
Avg Commits per committer: 14.0
Development Distribution Score (DDS): 0.036

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
williamorim t****9@g****m 27
Thiago Gomes Verissimo v****v@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 1
Total pull requests: 3
Average time to close issues: 9 months
Average time to close pull requests: about 2 months
Total issue authors: 1
Total pull request authors: 2
Average comments per issue: 1.0
Average comments per pull request: 0.33
Merged pull request: 1
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/openvironment/Rpollution

Top Issue Authors

  • tribeiros (1)

Top Pull Request Authors

  • beatrizmilz (2)
  • thiagogomesverissimo (1)

Top Issue Labels

Top Pull Request Labels


Dependencies

DESCRIPTION cran
  • R >= 3.4.0 depends
  • dplyr * imports
  • fs * imports
  • glue * imports
  • httr * imports
  • lubridate * imports
  • magrittr * imports
  • purrr * imports
  • readr * imports
  • rvest * imports
  • stringr * imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests

Score: 2.890371757896165