Skip to contents

Get zonar schedule data for a specific zone

Usage

zonar_get_paths(start, end, 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.

assets

Character vector of Zonar asset ids to retrieve. If NULL (the default) retrieve paths for all assets.

timezone

Defaults to "America/New_York"

Examples

library(RZonar)

pathtest_all <- zonar_get_paths(
  start = "2022-11-30 08:10:00",
  end = "2022-11-30 08:40:00")
#> Error in dplyr::mutate(out, datetime = lubridate::ymd_hms(paste(.data$Date,     .data$`Time(EST)`), tz = timezone)):  In argument: `datetime = lubridate::ymd_hms(paste(.data$Date, .data$`Time(EST)`), tz = timezone)`.
#> Caused by error in `` .data$`Time(EST)` ``:
#> ! Column `Time(EST)` not found in `.data`.
dplyr::glimpse(pathtest_all)
#> Error in dplyr::glimpse(pathtest_all): object 'pathtest_all' not found
pathtest_586 <- zonar_get_paths(
  start = "2022-11-30 08:10:00",
  end = "2022-11-30 08:40:00",
  assets = "586")
#> Error in dplyr::mutate(out, datetime = lubridate::ymd_hms(paste(.data$Date,     .data$`Time(EST)`), tz = timezone)):  In argument: `datetime = lubridate::ymd_hms(paste(.data$Date, .data$`Time(EST)`), tz = timezone)`.
#> Caused by error in `` .data$`Time(EST)` ``:
#> ! Column `Time(EST)` not found in `.data`.
dplyr::glimpse(pathtest_586)
#> Error in dplyr::glimpse(pathtest_586): object 'pathtest_586' not found