ats_parse_pos | R Documentation |
Convert http response to tibble
ats_parse_pos(resp, trans)
resp |
HTTP response object |
trans |
Tibble of corresponding transmission data |
A tibble with 25 columns (see fetch_ats_positions
)
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. Column substitutions in neolink modes are reversed.
fetch_ats_positions
## Not run:
ats_login("mary", ".")
trans <- fetch_ats_transmissions()
ats_get(
path = list(
"download_all_data",
paste0("Download_all_data.aspx?dw=all")
),
task = "download position data"
) %>%
ats_parse_pos(trans)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.