All Projects → ropensci → rdefra

ropensci / rdefra

Licence: other
rdefra: Interact with the UK AIR Pollution Database from DEFRA

Programming Languages

r
7636 projects
TeX
3793 projects

Projects that are alternatives of or similar to rdefra

ropenaq
⛔ ARCHIVED ⛔ Accesses Air Quality Data from the Open Data Platform OpenAQ
Stars: ✭ 69 (+392.86%)
Mutual labels:  air-quality, air-pollution, r-package, air-pollution-levels, peer-reviewed
PostcodesioR
API wrapper around postcodes.io - free UK postcode lookup and geocoder
Stars: ✭ 36 (+157.14%)
Mutual labels:  r-package, uk, peer-reviewed
nomisr
Access UK official statistics from the Nomis database through R.
Stars: ✭ 30 (+114.29%)
Mutual labels:  r-package, uk, peer-reviewed
rdflib
📦 High level wrapper around the redland package for common rdf applications
Stars: ✭ 47 (+235.71%)
Mutual labels:  r-package, peer-reviewed
riem
✈️ ☀️ R package for accessing ASOS data via the Iowa Environment Mesonet ☁️ ✈️
Stars: ✭ 38 (+171.43%)
Mutual labels:  r-package, peer-reviewed
cyphr
Humane encryption
Stars: ✭ 91 (+550%)
Mutual labels:  r-package, peer-reviewed
opencage
🌐 R package for the OpenCage API -- both forward and reverse geocoding 🌐
Stars: ✭ 82 (+485.71%)
Mutual labels:  r-package, peer-reviewed
SmogWatch
watchOS app for checking air pollution levels, created for my blog post series
Stars: ✭ 34 (+142.86%)
Mutual labels:  air-quality, air-pollution
getCRUCLdata
CRU CL v. 2.0 Climatology Client for R
Stars: ✭ 17 (+21.43%)
Mutual labels:  r-package, peer-reviewed
airqmon
A macOS menu bar application that displays live air quality data from the nearest sensor station.
Stars: ✭ 86 (+514.29%)
Mutual labels:  air-quality, air-pollution
woeip
A platform for impacted communities to understand their local air quality and advocate for environmental justice.
Stars: ✭ 26 (+85.71%)
Mutual labels:  air-quality, air-pollution
s5p-tools
Python scripts to download and preprocess air pollution concentration level data aquired from the Sentinel-5P mission
Stars: ✭ 49 (+250%)
Mutual labels:  air-quality, air-pollution
geoparser
⛔ ARCHIVED ⛔ R package for the Geoparser.io API
Stars: ✭ 38 (+171.43%)
Mutual labels:  r-package, peer-reviewed
bittrex
A R Client for the Bittrex Crypto-Currency Exchange
Stars: ✭ 26 (+85.71%)
Mutual labels:  r-package, peer-reviewed
NLMR
📦 R package to simulate neutral landscape models 🏔
Stars: ✭ 57 (+307.14%)
Mutual labels:  r-package, peer-reviewed
rrlite
R interface to rlite https://github.com/seppo0010/rlite
Stars: ✭ 16 (+14.29%)
Mutual labels:  r-package, peer-reviewed
roadoi
Use Unpaywall with R
Stars: ✭ 60 (+328.57%)
Mutual labels:  r-package, peer-reviewed
suppdata
Grabbing SUPPlementary DATA in R
Stars: ✭ 31 (+121.43%)
Mutual labels:  r-package, peer-reviewed
weathercan
R package for downloading weather data from Environment and Climate Change Canada
Stars: ✭ 83 (+492.86%)
Mutual labels:  r-package, peer-reviewed
TWAQIReactNative
台灣空污即時預報
Stars: ✭ 24 (+71.43%)
Mutual labels:  air-quality, air-pollution

rdefra: Interact with the UK AIR Pollution Database from DEFRA

DOI JOSS

R-CMD-check codecov.io

CRAN Status Badge CRAN Total Downloads CRAN Monthly Downloads

The package rdefra allows to retrieve air pollution data from the Air Information Resource UK-AIR of the Department for Environment, Food and Rural Affairs in the United Kingdom. UK-AIR does not provide a public API for programmatic access to data, therefore this package scrapes the HTML pages to get relevant information.

This package follows a logic similar to other packages such as waterData and rnrfa: sites are first identified through a catalogue, data are imported via the station identification number, then data are visualised and/or used in analyses. The metadata related to the monitoring stations are accessible through the function ukair_catalogue(), missing stations’ coordinates can be obtained using the function ukair_get_coordinates(), and time series data related to different pollutants can be obtained using the function ukair_get_hourly_data().

DEFRA’s servers can handle multiple data requests, therefore concurrent calls can be sent simultaneously using the parallel package. Although the limit rate depends on the maximum number of concurrent calls, traffic and available infrustracture, data retrieval is very efficient. Multiple years of data for hundreds of sites can be downloaded in only few minutes.

For similar functionalities see also the openair package, which relies on a local copy of the data on servers at King’s College (UK), and the ropenaq which provides UK-AIR latest measured levels (see https://uk-air.defra.gov.uk/latest/currentlevels) as well as data from other countries.

Installation

Get the released version from CRAN:

install.packages("rdefra")

Or the development version from GitHub using the package remotes:

install.packages("remotes")
remotes::install_github("ropensci/rdefra")

Load the rdefra package:

library("rdefra")

Functions

The package logic assumes that users access the UK-AIR database in the fllowing steps:

  1. Browse the catalogue of available stations and selects some stations of interest (see function ukair_catalogue()).
  2. Get missing coordinates (see function ukair_get_coordinates()).
  3. Retrieves data for the selected stations (see functions ukair_get_site_id() and ukair_get_hourly_data()).

For an in-depth description of the various functionalities andexample applications, please refer to the package vignette.

Meta

  • This package and functions herein are part of an experimental open-source project. They are provided as is, without any guarantee.
  • Please report any issues or bugs.
  • License: GPL-3
  • This package was reviewed by Maëlle Salmon and Hao Zhu for submission to ROpenSci (see review here) and the Journal of Open Source Software (see review here).
  • Cite rdefra: citation(package = "rdefra")

ropensci_footer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].