Package: AirMonitor 0.4.2

Jonathan Callahan

AirMonitor: Air Quality Data Analysis

Utilities for working with hourly air quality monitoring data with a focus on small particulates (PM2.5). A compact data model is structured as a list with two dataframes. A 'meta' dataframe contains spatial and measuring device metadata associated with deployments at known locations. A 'data' dataframe contains a 'datetime' column followed by columns of measurements associated with each "device-deployment". Algorithms to calculate NowCast and the associated Air Quality Index (AQI) are defined at the US Environmental Projection Agency AirNow program: <https://document.airnow.gov/technical-assistance-document-for-the-reporting-of-daily-air-quailty.pdf>.

Authors:Jonathan Callahan [aut, cre], Spencer Pease [ctb], Hans Martin [ctb], Rex Thompson [ctb]

AirMonitor_0.4.2.tar.gz
AirMonitor_0.4.2.zip(r-4.5)AirMonitor_0.4.2.zip(r-4.4)AirMonitor_0.4.2.zip(r-4.3)
AirMonitor_0.4.2.tgz(r-4.4-any)AirMonitor_0.4.2.tgz(r-4.3-any)
AirMonitor_0.4.2.tar.gz(r-4.5-noble)AirMonitor_0.4.2.tar.gz(r-4.4-noble)
AirMonitor_0.4.2.tgz(r-4.4-emscripten)AirMonitor_0.4.2.tgz(r-4.3-emscripten)
AirMonitor.pdf |AirMonitor.html
AirMonitor/json (API)
NEWS

# Install 'AirMonitor' in R:
install.packages('AirMonitor', repos = c('https://mazamascience.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mazamascience/airmonitor/issues

Datasets:

On CRAN:

6.87 score 7 stars 178 scripts 518 downloads 71 exports 138 dependencies

Last updated 1 months agofrom:1534287533. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 26 2024
R-4.5-winWARNINGOct 26 2024
R-4.5-linuxWARNINGOct 26 2024
R-4.4-winWARNINGOct 26 2024
R-4.4-macWARNINGOct 26 2024
R-4.3-winWARNINGOct 26 2024
R-4.3-macWARNINGOct 26 2024

Exports:%>%addAQILegendaddAQILinesaddAQIStackedBaraddShadedNightAirFire_S3_archiveBaseUrlairnow_loadAnnualairnow_loadDailyairnow_loadLatestairnow_loadMonthlyairsis_loadAnnualairsis_loadDailyairsis_loadLatestaqiCategoriesaqiColorsCONUScoreMetadataNamesepa_aqs_loadAnnualmonitor_aqimonitor_arrangemonitor_bestTimezonemonitor_checkmonitor_collapsemonitor_combinemonitor_dailyBarplotmonitor_dailyStatisticmonitor_dailyThresholdmonitor_distinctmonitor_dropEmptymonitor_dygraphmonitor_filtermonitor_filterByDistancemonitor_filterDatemonitor_filterDatetimemonitor_filterMetamonitor_fromPWFSLSmokemonitor_getCurrentStatusmonitor_getDatamonitor_getDistancemonitor_getMetamonitor_isEmptymonitor_isValidmonitor_leafletmonitor_loadmonitor_loadAnnualmonitor_loadDailymonitor_loadLatestmonitor_mutatemonitor_nowcastmonitor_pullmonitor_reordermonitor_replaceValuesmonitor_selectmonitor_selectWheremonitor_setTimeAxismonitor_slice_headmonitor_slice_tailmonitor_timeInfomonitor_timeRangemonitor_timeseriesPlotmonitor_toAQCTablemonitor_toCSVmonitor_toPWFSLSmokemonitor_trimDatepollutantNamesQC_invalidateConsecutiveSuspectValuesUS_52US_AQIwrcc_loadAnnualwrcc_loadDailywrcc_loadLatest

Dependencies:askpassbase64encbitbit64brewbriobslibcachemcallrclicliprcolorspacecommonmarkcpp11crayoncredentialscrosstalkcurldescdevtoolsdiffobjdigestdownlitdplyrdygraphsellipsisevaluatefansifarverfastmapfontawesomeformatRfsfutile.loggerfutile.optionsgenericsgeodistgeohashToolsgertghgitcredsgluehighrhmshtmltoolshtmlwidgetshttpuvhttrhttr2inijquerylibjsonliteknitrlabelinglambda.rlaterlatticelazyevalleafletleaflet.providerslifecyclelubridatemagrittrMazamaCoreUtilsMazamaRollUtilsMazamaTimeSeriesmemoisemimeminiUImunsellopensslpillarpkgbuildpkgconfigpkgdownpkgloadpngpraiseprettyunitsprocessxprofvisprogresspromisespspurrrR6raggrappdirsrasterrcmdcheckRColorBrewerRcppreadrrematch2remotesrlangrmarkdownroxygen2rprojrootrstudioapirversionsrvestsassscalesselectrsessioninfoshinysourcetoolsspstringistringrsyssystemfontsterratestthattextshapingtibbletidyselecttimechangetinytextzdburlcheckerusethisutf8vctrsviridisLitevroomwaldowhiskerwithrxfunxml2xopenxtablextsyamlzipzoo

Data Model

Rendered fromData_Model.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2022-10-31
Started: 2022-03-29

Developer Style Guide

Rendered fromDeveloper_Style_Guide.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2022-10-31
Started: 2022-02-15

Introduction to AirMonitor

Rendered fromAirMonitor.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2022-10-31
Started: 2022-02-15

Readme and manuals

Help Manual

Help pageTopics
Add an AQI legend to a mapaddAQILegend
Add AQI lines to a plotaddAQILines
Create stacked AQI baraddAQIStackedBar
Add nighttime shading to a timeseries plotaddShadedNight
USFS maintained archive base URLAirFire_S3_archiveBaseUrl
Load annual AirNow monitoring dataairnow_loadAnnual
Load daily AirNow monitoring dataairnow_loadDaily
Load most recent AirNow monitoring dataairnow_loadLatest
Load monthly AirNow monitoring dataairnow_loadMonthly
Load annual AIRSIS monitoring dataairsis_loadAnnual
Load daily AIRSIS monitoring dataairsis_loadDaily
Load most recent AIRSIS monitoring dataairsis_loadLatest
Generate AQI categoriesaqiCategories
Generate AQI colorsaqiColors
Camp Fire example datasetCamp_Fire
Carmel Valley example datasetCarmel_Valley
CONUS state codesCONUS
Names of standard metadata columnscoreMetadataNames
Load annual AirNow monitoring dataepa_aqs_loadAnnual
Calculate hourly NowCast-based AQI valuesmonitor_aqi
Order _mts_monitor_ time series by metadata valuesmonitor_arrange
Return the most common timezonemonitor_bestTimezone
Check an _mts_monitor_ object for validity.monitor_check
Collapse an 'mts_monitor' object into a single time seriesmonitor_collapse
Combine multiple 'mts_monitor' objectsmonitor_combine
Create daily barplotmonitor_dailyBarplot
Create daily statistics for each monitor in an _mts_monitor_ objectmonitor_dailyStatistic
Daily counts of values at or above a thresholdmonitor_dailyThreshold
Retain only distinct data records in monitor$datamonitor_distinct
Drop device deployments with all missing datamonitor_dropEmpty
Create Interactive Time Series Plotmonitor_dygraph
Filter by distance from a target locationmonitor_filterByDistance
Date filtering for _mts_monitor_ objectsmonitor_filterDate
Datetime filtering for 'mts_monitor' objectsmonitor_filterDatetime
General purpose metadata filtering for _mts_monitor_ objectsmonitor_filter monitor_filterMeta
Convert a ws_monitor object from the PWFSLSmoke packagemonitor_fromPWFSLSmoke
Get current status of monitorsmonitor_getCurrentStatus
Extract dataframes from _mts_monitor_ objectsmonitor_getData monitor_getDataFrame monitor_getMeta
Calculate distances from _mts_monitor_ locations to a location of interestmonitor_getDistance
Test for an empty _mts_monitor_ objectmonitor_isEmpty
Test _mts_monitor_ object for correct structuremonitor_isValid
Leaflet interactive map of monitor locationsmonitor_leaflet
Load monitoring data from all sourcesmonitor_load
Load annual monitoring data from all sourcesmonitor_loadAnnual
Load daily monitoring data from all sourcesmonitor_loadDaily
Load most recent monitoring data from all sourcesmonitor_loadLatest
Apply a function to _mts_monitor_ time seriesmonitor_mutate
Apply NowCast algorithm to _mts_monitor_ datamonitor_nowcast
Extract a column of metadata or datamonitor_pull
Replace _mts_monitor_ data with another valuemonitor_replaceValues
Subset and reorder time series within an _mts_monitor_ objectmonitor_reorder monitor_select
Data-based subsetting of time series within an _mts_monitor_ object.monitor_selectWhere
Extend/contract _mts_monitor_ time series to new start and end timesmonitor_setTimeAxis
Subset time series based on their position within an _mts_monitor_ objectmonitor_slice_head monitor_slice_tail
Get time related information for a monitormonitor_timeInfo
Get the time range for a monitormonitor_timeRange
Create timeseries plotmonitor_timeseriesPlot
Convert monitor data into an AQI category tablemonitor_toAQCTable
Convert monitor data as CSVmonitor_toCSV
Convert a mts_monitor object to a ws_monitor object for the PWFSLSmoke packagemonitor_toPWFSLSmoke
Trim a _mts_monitor_ object to full daysmonitor_trimDate
NW_Megafires example datasetNW_Megafires
Names of standard pollutantspollutantNames
Invalidate consecutive suspect values.QC_invalidateConsecutiveSuspectValues
US state codesUS_52
US EPA AQI Index levels, names, colors and action textUS_AQI
Load annual WRCC monitoring datawrcc_loadAnnual
Load daily WRCC monitoring datawrcc_loadDaily
Load most recent WRCC monitoring datawrcc_loadLatest