ats_parse_trans: Parse Transmissions

View source: R/fetch_ats.R

ats_parse_transR Documentation

Parse Transmissions

Description

Convert http response to tibble

Usage

ats_parse_trans(resp)

Arguments

resp

HTTP response object

Value

A tibble with 20 columns (see fetch_ats_transmissions)

Notes

Data can be retrieved either via httr::GET (for all transmissions) or httr::POST (by collar), and each request type can return two different formats depending on whether there is data available. This function handles the four different possibilities and returns a tibble with the same column names and types no matter what. GmtOffset is multiplied by -1 to correct for ATS using non-standard syntax. Dates in UTC and current system time zone are added. Neolink events are split into separate columns.

See Also

fetch_ats_transmissions

Examples

## Not run: 

ats_login("mary", ".")

trans <- fetch_ats_transmissions()

ats_get(
  path = list(
    "download_all_transmission",
    "download_all_transmission.aspx?dw=all"
  ),
  task = "download transmission data"
) %>%
  ats_parse_trans()


## End(Not run)


Huh/collar documentation built on Aug. 5, 2022, 11:02 p.m.