Skip to contents

Read metadata from Air Quality e-Reporting by EEA member countries. See EEA website for the details on data and metadata.

Usage

import_metadata_EEA(
  obs_path = NULL,
  stations.type = NULL,
  stations.area = NULL,
  pollutant = NULL,
  date.begin = NULL,
  date.end = NULL
)

Arguments

obs_path

Path to metadata file.

stations.type

Optional character vector with stations type to be selected.

stations.area

Optional character vector with stations area to be selected.

pollutant

Optional integer or string to select pollutant.

date.begin

Optional beginning date-time (d/m/y H:M:S) to select active station

date.end

Optional ending date-time (d/m/y H:M:S) to select active station

Value

A data.table with relevant

Details

If stations.type and/or stations.area are not specified all data in the database file are read. stations.type can contain any combination of station type (for ex. "background", "traffic" or "industrial"). stations.area can contain any combination of station area (for ex. "urban", "suburban", "rural-regional", "rural", "rural-nearcity").

If date.begin or date.end are provided, the stations are filtered by the ObservationDateBegin and ObservationDateEnd fields.

Duplicate values of station code and pollutant code are removed.

Examples

if (FALSE) {
metadata <- import_meta_EEA("./European_metadata.csv", stations.area = c("urban"),
                            stations.type = c("traffic", "industrial"))
}