We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_field_class()
This is using the dev version
library(tidytransit) local_gtfs_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit") gtfs <- read_gtfs(local_gtfs_path) gtfsio::check_field_class(gtfs, "stop_times", "arrival_time", "hms") #> Error in vapply(x[[file]], class, character(1)): values must be length 1, #> but FUN(X[[2]]) result is length 2 class(gtfs$stop_times$arrival_time) #> [1] "hms" "difftime" class(gtfs$stop_times$arrival_time) <- "hms" class(gtfs$stop_times$departure_time) <- "hms" gtfsio::check_field_class(gtfs, "stop_times", "arrival_time", "hms") #> [1] TRUE
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is using the dev version
The text was updated successfully, but these errors were encountered: