knitr::opts_chunk$set( comment = '#>', collapse = TRUE, warning = FALSE, message = FALSE, eval = FALSE, cache = TRUE )
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')
kehra
in R doing citation(package = 'kehra')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.