Closed polettif closed 3 years ago
After thinking about it, filter_feed_by...
sounds better because existing filter functions (like filter_stop_times
or filter_stops
) return just one table and not the whole feed.
I guess windows-latest (devel) keeps failing because there are packages missing for that version but I can't really tell.
Merging #168 (4475663) into master (7139cde) will increase coverage by
27.00%
. The diff coverage is100.00%
.:exclamation: Current head 4475663 differs from pull request most recent head d081c62. Consider uploading reports for the commit d081c62 to get more accurate results
@@ Coverage Diff @@
## master #168 +/- ##
===========================================
+ Coverage 61.57% 88.57% +27.00%
===========================================
Files 13 13
Lines 968 1042 +74
===========================================
+ Hits 596 923 +327
+ Misses 372 119 -253
Impacted Files | Coverage Δ | |
---|---|---|
R/service.R | 70.96% <ø> (+8.11%) |
:arrow_up: |
R/time.R | 100.00% <ø> (+5.55%) |
:arrow_up: |
R/utils.R | 100.00% <ø> (+67.56%) |
:arrow_up: |
R/io.R | 100.00% <100.00%> (ø) |
|
R/joins.R | 100.00% <100.00%> (ø) |
|
R/raptor.R | 100.00% <100.00%> (ø) |
|
R/spatial.R | 100.00% <100.00%> (ø) |
|
R/summary.R | 100.00% <0.00%> (+13.95%) |
:arrow_up: |
R/spec.R | 100.00% <0.00%> (+100.00%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 7139cde...d081c62. Read the comment docs.
Vignette's not yet ready but I think we can still merge, even if windows-devel is somehow failing, what do you think @tbuckl?
@polettif sorry i have been too busy to review this recently. i don't see that changing anytime soon. lets discuss transferring review and maintenance tasks.
This PR adds
filter_feed_by_*
functions that can be used to create a subset of a feed based on trips running through an area or using certain stops:filter_feed_by_trips
(base function)filter_feed_by_stops
filter_feed_by_area
filter_feed_by_date
(wrapsfilter_stop_times
)travel_times
now also accepts a feed filtered byfilter_feed_by_date
I've also done some restructuring with spatial functions:
write_gtfs
now correctly converts sf objects to gtfs csv tables (viasf_as_tbl
)gtfs_transform
which runs sf::st_transform on shapes and stops