-
Notifications
You must be signed in to change notification settings - Fork 16
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
dodgr_dists
with numeric node indices gives unexpected results
#254
Comments
Thanks for noting that @luukvdmeer. As background and general advice: One design aim of this package was to be "smart" about The error you observed was this simple one-line fix. More importantly, the commits above update the docs to clearly state the intention of Lines 49 to 59 in 648129f
I also added some tests to demonstrate why you see the results you gave above. The vertex map is made by sequentially crawling the Thanks as always for helping to make the package better! |
Yes, this docs now make it clearer! I see it is not easy indeed to try to anticipate all different ways people may specify the from and to nodes ;) |
So all 'from' and 'to' params contain the full text added in that issue, and are all inherited
So that almost all fns just inherit param descriptions directly from dodgr_dists
I will add this quote to my notes for a class on the R software ahahhaha |
Hi Mark! I was running
dodgr_dists
on a simple graph in which the from and to nodes of the edges are encoded by numeric values, rather than by characters as is used in most of your examples. This gives some strange results which I am not sure if they are intended, see the reprex below:Created on 2024-09-26 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: