Skip to content

Commit

Permalink
Merge pull request #102 from nhs-r-community/debug-nhsrpostcodes
Browse files Browse the repository at this point in the history
Added debugging note for use of NHSRpopulation package code
  • Loading branch information
Lextuga007 authored Oct 21, 2024
2 parents 98cc02c + 00a6dd6 commit 302c579
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions imd.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,19 @@ tibble_postcodes <- dplyr::tibble(
random_postcodes = postcodes,
)
NHSRpopulation::get_data(tibble_postcodes,
column = "random_postcodes",
url_type = "imd"
) |>
dplyr::select(
random_postcodes,
new_postcode,
imd_decile,
imd_rank,
imd_score
) |>
mutate(imd_decile_local = ntile(-imd_score, n = 10)) # creating new deciles from the data provided
## Debugging
# NHSRpopulation::get_data(tibble_postcodes,
# column = "random_postcodes",
# url_type = "imd"
# ) |>
# dplyr::select(
# random_postcodes,
# new_postcode,
# imd_decile,
# imd_rank,
# imd_score
# ) |>
# mutate(imd_decile_local = ntile(-imd_score, n = 10)) # creating new deciles from the data provided
```

## LSOAs - by postcode and by Local Authority/District
Expand Down

0 comments on commit 302c579

Please sign in to comment.