Skip to content

Commit

Permalink
Implement catch-all for PC7 format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennit07 committed Aug 2, 2023
1 parent 5d70946 commit ca27b79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/run_episode_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ run_episode_file <- function(
NA_character_,
.data$chi
),
gpprac = convert_eng_gpprac_to_dummy(.data[["gpprac"]])
gpprac = convert_eng_gpprac_to_dummy(.data[["gpprac"]]),
# PC8 format may still be used. Ensure here that all datasets are in PC7 format.
postcode = phsmethods::format_postcode(.data$postcode, "pc7")
) %>%
correct_cij_vars() %>%
fill_missing_cij_markers() %>%
Expand Down

0 comments on commit ca27b79

Please sign in to comment.