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

Extend package to search for Local Authority codes #12

Open
Lextuga007 opened this issue Dec 22, 2023 · 2 comments
Open

Extend package to search for Local Authority codes #12

Lextuga007 opened this issue Dec 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Lextuga007
Copy link
Member

Examples are

# Define code for Nottingham City LA
la_code_nott_city <- c("E06000018")

# Define codes for Nottinghamshire County Council LA districts (further details
# can be found here
# https://cdu-data-science-team.github.io/team-blog/posts/2021-05-14-index-of-multiple-deprivation/#imd-in-sql)
la_code_notts_county <- c(
  "E06000018", "E07000170", "E07000171", "E07000172",
  "E07000173", "E07000174", "E07000175", "E07000176"
)

# Combine all districts into one object
la_code_nott_city_notts_county <- c(la_code_nott_city, la_code_notts_county)

From the {NHSRpopulation} vignette. These codes appear under column lau2_code

@Lextuga007 Lextuga007 added the enhancement New feature or request label Dec 22, 2023
@francisbarton
Copy link
Collaborator

I don't quite get the intention here. Is it to return all postcodes in the county?

@Lextuga007
Copy link
Member Author

Yes, for counties based on the constituent district/local authority codes.

I was trying to recode the original vignette that used the Excel data that was downloaded but that uses Local Authority codes to get the IMD scores for counties but those codes aren't in this API.

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

No branches or pull requests

2 participants