Closed Huh closed 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
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.