The package kehra allows to collect, assemble and model air pollution, weather and health data. The package is being developed as part of the British Council's funded KEHRA project and builds upon other R packages such as rdefra to retrieve pollution data from the UK-AIR database hosted by the UK Department for Enviornment, Food and Rural Affairs, and the bnlearn to model the assembled database using Bayesian Networks.
The kehra package depends on the Geospatial Data Abstraction Library (gdal) and some additional CRAN packages. Check for missing dependencies and install them using the commands below:
packs <- c('Hmisc', 'raster', 'reshape2', 'stringr', 'sp', 'xts', 'zoo',
'devtools', 'rgdal')
new.packages <- packs[!(packs %in% installed.packages()[,'Package'])]
if(length(new.packages)) install.packages(new.packages)
Get the released version from CRAN:
install.packages('kehra')
Or the development version from github using devtools:
devtools::install_github('kehraProject/kehra')
Load the kehra package:
library('kehra')
- Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
- Please report any issues or bugs.
- License: GPL-3
- Get citation information for
kehra
in R doingcitation(package = 'kehra')