pemr: A Unified R Interface for Managing Personal Exposure Monitor Data in Air Pollution Research |
|
|
|
Abstract Personal air pollution monitoring relies on
a variety of portable devices, each recording data from different
sensors in non-standard formats and data structures, saved to local
files or uploaded to web APIs. Tools are needed in R to handle these
data in a device- and format-agnostic way. The pemr package
aims to provide a unified interface to collect and handle personal air
pollution monitoring data.
Personal exposure monitors
Air pollution monitoring
Issues
The role of pemr
# Single function to read data
pemr::read_monitor(
file = "your-file",
type = "monitor-type"
)
# Handles each monitor type internally
pemr:::read_em_ecm(file, skip = 24, ...)
pemr:::read_em_upas(file, ...)
# And nested metadata is handled for
# for each monitor type
pemr::collect_data(
.data = "data-column",
type = "monitor-type"
)pemr handles 4 types
Future of pemr