Effects of External Conditions on Air Quality
Overview
Analyzes the impact of external conditions on air quality using counterfactual approaches, featuring methods for data preparation, modeling, and visualization.
- Fixed a bug in
load_uba_data_from_dir()where hours were not converted correctly tolubridatedatetimes. - Changed alignment of rolling mean in plotting functions to
"right".
ubair 1.1.0
**Initial CRAN Submission**\
**Public Release**
- First public release of
ubairon CRAN. - Previous internal versions (pre-CRAN) were used privately or shared within a specific group.
- The package is intended for use with air quality station measurement data. These can be obtained for Germany via Air Quality Data API (UBA) or per request to [immission\@uba.de](mailto:immission@uba.de){.email}
- Includes the following features:
- **Counterfactual analysis**: Apply counterfactual analysis to assess external effects on air quality based on meteorological data, with support for four models: LightGBM, Random Forest, Feedforward Neural Network, and Dynamic Regression.
- **Data detrending and retrending**: Enable users to remove and reintroduce trends in data as needed.
- **Visualization and evaluation**: Provide tools for visualizing and evaluating the results of counterfactual analyses.
Show all changes in 1.1.1Hide the rest of the changes in 1.1.1
- **Data preprocessing**: Preprocess data to prepare it for counterfactual analysis.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- ERROR13 OK, 1 ERROR2026-03-10
Documentation
- Help pages
- 23
- Examples that run
- 75%12 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 67%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- neun_euro_ticket_demonstrator HTML
- user_sample_1 HTML
- user_sample_2 HTML
- user_sample_3 HTML
Downloads
Repository
Repository gitlab.opencode.de/uba-ki-lab/ubair is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing ubair adds 46 packages (31 with compiled code, 46 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.1.1Latest
- RR 4.5.0 released · 2025-04-11
- 1.1.02025-01-27
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-01-27
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.4.0
- Bundled data
- 3.3 MB / 2 files
- Download size
- 4.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ubair")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.