Convert stops into Simple Features Points

stops_as_sf(stops)

Arguments

stops

a gtfs$stops dataframe

Value

an sf dataframe for gtfs routes with a point column

Examples

data(gtfs_duke) some_stops <- gtfs_duke$stops[sample(nrow(gtfs_duke$stops), 40),] some_stops_sf <- stops_as_sf(some_stops) plot(some_stops_sf)
#> Warning: plotting the first 9 out of 13 attributes; use max.plot = 13 to plot all