Skip to content

Commit

Permalink
use distinct(chi)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennit07 committed Aug 30, 2024
1 parent 5948fb0 commit c502fd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/process_lookup_deaths.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ process_slf_deaths_lookup <- function(
dplyr::mutate(
deceased = TRUE
) %>%
dplyr::distinct(chi, .keep_all = TRUE) %>%
# save anon chi on disk
slfhelper::get_anon_chi()

Expand Down
3 changes: 2 additions & 1 deletion R/process_refined_death.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ process_refined_death <- function(
dplyr::mutate(
fy = phsmethods::extract_fin_year(death_date),
fy = as.character(paste0(substr(fy, 3, 4), substr(fy, 6, 7)))
)
) %>%
dplyr::distinct(anon_chi, .keep_all = TRUE)

if (write_to_disk) {
write_file(
Expand Down

0 comments on commit c502fd4

Please sign in to comment.