Huh / collar

Utilities for exploring telemetry data
Other
6 stars 9 forks source link

The new count option creates data of a different type and shape causing error #46

Closed Huh closed 5 years ago

Huh commented 5 years ago

Vectronics now has an option that allows us to count how many data points of a given type are available. When we call this using the existing code it throws an error because it is returning a single integer.

Huh commented 5 years ago

Now returns a table of id, type and count to the user.

> path <- get_paths(
  system.file(
    "extdata",
    package = "collar"
  )
)
> fetch_vectronics(path, type = "gps", count = TRUE)
Downloading Vectronics collar data...
Parsing data...
Done. Elapsed time: 0.07 minutes
# A tibble: 1 x 3
  id      type  count
  <chr>   <chr> <int>
1 1000001 gps     645