8000 zip_distance with vectors not returning correct order of results · Issue #20 · gavinrozzi/zipcodeR · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zip_distance with vectors not returning correct order of results #20

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

Open
ghost opened this issue Jan 14, 2022 · 0 comments
Open

zip_distance with vectors not returning correct order of results #20

ghost opened this issue Jan 14, 2022 · 0 comments

Comments

@ghost
Copy link
ghost commented Jan 14, 2022

Using the example given in the README:
#> zipcode_a zipcode_b distance
#> 1 08731 08901 6.9
#> 2 08734 08005 45.1`

You can check a map to verify that the distances for the two pairs of zipcodes is swapped. 08731 > 08901 is actually 45mi, while 08734 > 08005 is 7mi.

You can see it more distinctly using the same repeated values:
zip_distance( zipcode_a = c('08731', '08731'), zipcode_b = c('08731', '08005') )

zipcode_a zipcode_b distance
08731 08731 6.9
08731 08005 0.0

They are also in the wrong order for multiple rows n > 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants
0