ukair_catalogue: Get DEFRA UK-AIR stations metadata

Description Usage Arguments Details Value Examples

View source: R/ukair_catalogue.R

Description

This function fetches the catalogue of monitoring stations from DEFRA's website.

Usage

1
2
3
4
5
6
7
8
ukair_catalogue(
  site_name = "",
  pollutant = 9999,
  group_id = 9999,
  closed = "true",
  country_id = 9999,
  region_id = 9999
)

Arguments

site_name

This is the name of a specific site. By default this is left blank to get info on all the available sites.

pollutant

This is a number from 1 to 10. Default is 9999, which means all the pollutants.

group_id

This is the identification number of a group of stations. Default is 9999 which means all available networks.

closed

This is "true" to include closed stations, "false" otherwise.

country_id

This is the identification number of the country, it can be a number from 1 to 6. Default is 9999, which means all the countries.

region_id

This is the identification number of the region. 1 = Aberdeen City, etc. (for the full list see https://uk-air.defra.gov.uk/). Default is 9999, which means all the local authorities.

Details

The argument Pollutant is defined based on the following convention:

The argument group_id is defined based on the following convention:

The argument country_id is defined based on the following convention:

Value

A dataframe listing stations and related information.

Examples

1
2
3
4
 ## Not run: 
 stations <- ukair_catalogue()
 
## End(Not run)

rdefra documentation built on April 14, 2020, 6:43 p.m.