Skip to content
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

Minor code typo in Section 2.3: Convert to Spatial Data #1

Open
wlandau opened this issue Aug 19, 2021 · 3 comments
Open

Minor code typo in Section 2.3: Convert to Spatial Data #1

wlandau opened this issue Aug 19, 2021 · 3 comments

Comments

@wlandau
Copy link

wlandau commented Aug 19, 2021

In these code chunks, the methadoneClinics data frame is both piped to geocode() and in the first argument of geocode(). Did you mean to go with just the former or just the latter?

geoCodedClinics <- methadoneClinics %>%
geocode(methadoneClinics, address = 'fullAdd',
lat = latitude, long = longitude, method = 'cascade')

geoCodedClinics <- methadoneClinics %>%
geocode(methadoneClinics, address = 'fullAdd',
lat = latitude, long = longitude, method = 'cascade')
geoCodedClinics

@wlandau
Copy link
Author

wlandau commented Aug 19, 2021

Or is there something I missed? https://geodacenter.github.io/opioid-environment-toolkit/geocodingAddress-tutorial.html seems to have rendered without error. I am only getting the errors when I run the code locally.

@spaykin
Copy link

spaykin commented Aug 19, 2021

That's an error - you can just use it in the first argument of geocode(). Will update the script shortly. Thanks for the catch.

@Makosak
Copy link
Contributor

Makosak commented Aug 19, 2021 via email

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

3 participants