pull_configuration: Pull metro sensor configuration

Description Usage Arguments Value

View source: R/loop_sensor_functions.R

Description

Read MnDOT JSON feed and wrangle into a tidy dataframe containing 20 variables related to sensor configuration. Useful for mapping (contains lat/lons) and calculating performance measures (contains detector_field).

Usage

1
pull_configuration(return_opt = c("within_dir", "in_memory"))

Arguments

return_opt

an object of class string which indicates how to return the data. "within_dir" will return the data within the directory as a csv entitled "Configuration of Metro Detectors <<date in format yyyy-mm-dd>>". "in-memory" will return the data in R, but requires assignment.

Value

dataframe containing 20 variables, including detector_field and lat/lons, for each sensor in MnDOT's metro district


sullivannicole/tc.sensors documentation built on Nov. 22, 2021, 6:38 a.m.