zonar_get_idle_events
retrieves zonar asset (bus) idle event
information for all assets.
Usage
zonar_get_idle_events(
start,
end,
zones = NULL,
assets = NULL,
timezone = "America/New_York"
)
Arguments
- start
Character vector of length one giving the start time in yyyy-mm-dd hh:mm:ss format.
- end
Character vector of length one giving the end time in yyyy-mm-dd hh:mm:ss format.
- zones
Character vector of zone names (not IDs!) to retrieve. If
NULL
(the default) retrieve all zones.- assets
Character vector of asset ids to retrieve. If
NULL
(the default) retrieve all assets.- timezone
Defaults to "America/New_York"
Examples
assettest <- zonar_get_idle_events(
start = "2022-11-30 08:00:00",
end = "2022-11-30 08:30:00",)
dplyr::glimpse(assettest)
#> Rows: 183
#> Columns: 10
#> $ tag <chr> "0", "0", "33973", "0", "0", "0", "34382", "34396", "3439…
#> $ fleet <chr> "B552", "B553", "HS461", "B554", "B555", "HS485", "HS486"…
#> $ type <chr> "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0…
#> $ id <chr> "39", "49", "53", "55", "57", "106", "107", "112", "114",…
#> $ exsid <chr> "", "", "", "", "", "", "", "", "", "", "", "", "", "", "…
#> $ event.from <dttm> 2022-11-30 08:13:32, 2022-11-30 08:13:16, 2022-11-30 08:…
#> $ event.to <dttm> 2022-11-30 08:22:07, 2022-11-30 08:15:28, 2022-11-30 08:…
#> $ event.length <chr> "00:08:35", "00:02:12", "00:13:37", "00:22:37", "00:04:51…
#> $ lat <chr> "-71.0037297", "-71.1597292", "-71.0615093", "-71.0530157…
#> $ long <chr> "42.3886043", "42.3459322", "42.2954727", "42.293592", "4…