Skip to content

Commit

Permalink
Change calculation to TRUE/FALSE
Browse files Browse the repository at this point in the history
Co-authored-by: James McMahon <[email protected]>
  • Loading branch information
Jennit07 and Moohan authored Jul 31, 2023
1 parent 3a8cc33 commit c50ed2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/process_tests_delayed_discharges.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ produce_source_dd_tests <- function(data) {
test_flags <- data %>%
dplyr::mutate(
n_delay_episodes = 1L,
code9_episodes = dplyr::case_when(
primary_delay_reason == "9" ~ 1L,
TRUE ~ 0L
)
code9_episodes = .data$primary_delay_reason == "9"
) %>%
create_hb_test_flags(.data$hbtreatcode) %>%
# keep variables for comparison
Expand Down

0 comments on commit c50ed2c

Please sign in to comment.