-
Notifications
You must be signed in to change notification settings - Fork 0
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
Scottish postcode converter (function) #3
Comments
I think this type of function would be super useful and I would love to see it added to the package. However, I think it has some serious issues that I don't have an immediate solution to.
Some ideas I had to work around this would be:
|
Thanks @Moohan,
I agree that a good solution to this would be to create a separate package containing the postcode directory that could sit within phsverse. Alternatively we could create a function within phsmethods to allow the user to download the SPD on-demand, which would then get loaded into their R environment for use for the rest of the session. This would require a dependency on an API and some code to make sure it works as expected. I would lean towards creating a package for the directory (and maybe other common Scottish lookup files, though not sure if this already exists). |
|
Proposing a function to convert postcodes to variables found in the Scottish postcode directory.
It could work like below:
The text was updated successfully, but these errors were encountered: