-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
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
Split-out code for handling od data into new 'od' package? #367
Comments
Absolutely! There's lots of stuff that |
Hi all. I haven't been able to keep track of |
Sounds like a a good idea in principle, would you inlcude the desire lines or keep the OD package non-spatial? If you are going to do it I think there need to be a good use case e.g. packages that would use OD but not stplanr, and perhaps some performance gains. I'm thinking og how I wrote I've had a quick look at https://github.com/ropensci/stplanr/blob/master/R/od-funs.R I find dependnacy on
Thats quite a lot ... |
I'm not sure how it would apply to |
Good question @mem48 I would start non spatial but think |
That huge list of dependencies is part of the reason for creating a new one. We can do most of the stuff without them! |
Update on this, I'm working on this and have found that a co-benefit is that we can make od functions in R much faster... |
Preliminary results below, heads-up @mem48 I will open source the code behind this soon.
|
A fairer test, with same inputs and output:
|
Some impressive improvements, definitly intrested to contribute. |
Update, I've created a work-in-progress package here: https://github.com/Robinlovelace/od |
Agreed on the benefit of reducing dependencies as a clear benefit. One question is how this fits in with the route* functions in |
Good question @richardellison, my current thinking is to use the |
Some of the most useful functions in stplanr revolve around handline OD data, like
od2line()
,od_oneway()
andodmatrix_to_od()
. I wonder if it would be useful, based on the concept of modularity in software development, to split such functions out into a new package with minimal dependencies, e.g. calledod
. Thoughts welcome.Heads-up @mpadge, @richardellison, @rafapereirabr, @mem48, @rCarto and anyone else watching this, feedback welcome.
The text was updated successfully, but these errors were encountered: