Skip to content

Commit

Permalink
fix NA in activity_after_death
Browse files Browse the repository at this point in the history
  • Loading branch information
lizihao-anu committed Oct 16, 2024
1 parent 75331b7 commit e699f66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/add_activity_after_death_flag.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ add_activity_after_death_flag <- function(
death_date_refined, death_date
))) %>%
dplyr::select(-death_date_refined, -ep_row_id_death) %>%
dplyr::distinct()
dplyr::distinct() %>%
dplyr::mutate(dplyr::if_else(is.na(activity_after_death),
0,
activity_after_death))

cli::cli_alert_info("Add activity after death flag function finished at {Sys.time()}")

Expand Down

0 comments on commit e699f66

Please sign in to comment.