Skip to contents

List transgressions

Usage

luftqualitaet_transgressions(params = list(), safe = TRUE, refresh = FALSE)

Arguments

params

Named list of query parameters. Common keys:

date_from

Start date/time filter (character, ISO-8601/date).

date_to

End date/time filter (character, ISO-8601/date).

component

Pollutant component id/code (character).

scope

Scope id/code (character).

station

Station id/code (character).

network

Network id/code (character).

lang

Language code for labels/descriptions (character).

safe

Logical; if TRUE (default), apply rate-limiting and cache GET responses to tools::R_user_dir("bunddev", "cache").

refresh

Logical; if TRUE, ignore cached responses and re-fetch from the API (default FALSE).

Value

A tibble with one row per station transgression record. Column names are derived from the indices metadata in the API response and typically include station id, day_first, day_recent, value of year, and monthly values for January through December.

Details

Returns exceedances (transgressions) data. API documentation: https://luftqualitaet.api.bund.dev.