Skip to content

Commit

Permalink
Style code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennit07 authored and github-actions[bot] committed Jul 26, 2023
1 parent 83c7f33 commit 3a8cc33
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions R/process_tests_delayed_discharges.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ process_tests_delayed_discharges <- function(data, year) {
#' @seealso calculate_measures
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)
) %>%
dplyr::mutate(
n_delay_episodes = 1L,
code9_episodes = dplyr::case_when(
primary_delay_reason == "9" ~ 1L,
TRUE ~ 0L
)
) %>%
create_hb_test_flags(.data$hbtreatcode) %>%
# keep variables for comparison
dplyr::select(c("n_delay_episodes":dplyr::last_col())) %>%
Expand Down

0 comments on commit 3a8cc33

Please sign in to comment.