knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of addPmData is to add PM estimates to geocoded data.
More information on the development of the spatial model can be found at the st_pm_hex repository and in the scientific manuscript describing model development: Brokamp, C. A High Resolution Spatiotemporal Fine Particulate Matter Exposure Assessment Model for the Contiguous United States. Environmental Advances. In Press. 2021. (accepted preprint available online: https://doi.org/10.1016/j.envadv.2021.100155).
You can install the development version from GitHub with:
# install.packages("remotes") remotes::install_github("geomarker-io/addPmData")
library(addPmData) d <- tibble::tribble( ~id, ~lat, ~lon, ~start_date, ~end_date, '55000100280', 39.2, -84.6, '2008-09-09', '2008-09-11', '55000100281', 39.2, -84.6, '2007-08-05', '2007-08-08', '55000100282', 39.2, -84.6, '2015-08-31', '2015-09-02') add_pm(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.