Skip to content

Commit

Permalink
Fixes to data processing
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbarton committed Oct 12, 2023
1 parent 7a47015 commit cc4eb05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/postcode_data_join_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ bulk_reverse_geocode <- function(.data) {

unnest_codes <- function(.data) {
.data |>
dplyr::mutate(
codes_names = names(codes),
across("codes", unlist)) |>
dplyr::mutate(codes_names = names(codes)) |>
dplyr::mutate(across("codes", unlist)) |>
dplyr::rename(code = "codes") |>
tidyr::pivot_wider(
names_from = codes_names,
names_from = "codes_names",
names_glue = "{codes_names}_{.value}",
values_from = codes)
values_from = "code")
}


Expand Down

0 comments on commit cc4eb05

Please sign in to comment.