Skip to content

Commit

Permalink
Update R/aggregate_by_chi.R
Browse files Browse the repository at this point in the history
Co-authored-by: James McMahon <[email protected]>
  • Loading branch information
lizihao-anu and Moohan authored Aug 8, 2023
1 parent 2179dd9 commit c5e6016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/aggregate_by_chi.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ aggregate_by_chi <- function(episode_file) {
.(
preventable_beddays = ifelse(
any(cij_ppa, na.rm = TRUE),
min(cij_end_date, end_fy(year)) - max(cij_start_date, start_fy(year)),
NA_real_
as.integer(min(cij_end_date, end_fy(year)) - max(cij_start_date, start_fy(year))),
NA_integer_
)
),
# cij_marker has been renamed as cij_total
Expand Down

0 comments on commit c5e6016

Please sign in to comment.