Comments (2)
@Joaobazzo , it seems your last Pull Request broke something in the package, particularly in the vigntte. Please have a look. https://travis-ci.org/ipeaGIT/gtfs2gps
from gtfs2gps.
library(patchwork)
library(ggplot2)
poa <- gtfs2gps::read_gtfs(system.file("extdata/poa.zip", package="gtfs2gps"))
fromgtfs <- poa$stop_times[!is.na(departure_time),.(departure_time)]
fromgtfs[,hora := stringr::str_sub(departure_time,1,2)]
table(fromgtfs$hora)
#>
#> 00 01 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#> 11 1 9 31 42 53 54 39 40 42 44 45 41 48 49 58 47 37 31 25 27
p1 <- ggplot(data = fromgtfs,aes(x = hora)) +
geom_histogram(stat = "count",bins = 24)
#> Warning: Ignoring unknown parameters: binwidth, bins, pad
poa2 <- gtfs2gps::gtfs2gps(poa)
#> Converting shapes to sf objects
#> Linking to GEOS 3.6.2, GDAL 2.2.3, PROJ 4.9.3
#> Using 1 CPU core
#> Processing the data
poa2[,hora := stringr::str_sub(departure_time,1,2)]
table(poa2$hora)
#>
#> 00 01 05 06 07
#> 4890 1730 233436 324541 195696
p2 <- ggplot(data = poa2,aes(x = hora)) +
geom_histogram(stat = "count",bins = 24)
#> Warning: Ignoring unknown parameters: binwidth, bins, pad
pf <- p1 / p2
pf
Created on 2020-03-27 by the reprex package (v0.3.0)
from gtfs2gps.
Related Issues (20)
- should gtfs2gps includes as gtfs class, such as gtfstools? HOT 9
- gtfs2gps::gtfs2gps not processing transport network sf object HOT 4
- example of adjust_speed function not working HOT 1
- writing a merged gtfs list got: 'gtfs' must inherit from the 'gtfs' class HOT 2
- gtfs2gps::gtfs2gps function not exporting file with proper units
- incompatibility with gtfstools HOT 1
- Vignette link does not work HOT 1
- Check performance of using gtfstools::string_to_seconds() HOT 2
- adjust_speed approach HOT 2
- Add `progress` parameter to gtfs2gps HOT 1
- New silent parameter to gtfs2gps()
- gtfs2gps function changing input parameter by reference HOT 1
- 'speed' values are NA , but not really HOT 3
- problems with spatial_resolution input argument
- Submit v2.1-0 to CRAN
- Add new parameter ncores
- passar apend_height p/ gtfs2emis
- fix documentation of parameter `ncores`
- Issues with the upcoming release of units 0.8-2 HOT 1
- Reactivate codecov
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtfs2gps.