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 Dec 5, 2023
1 parent f67a7b2 commit 7f6b4ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/process_sc_all_home_care.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ process_sc_all_home_care <- function(
dplyr::mutate(reablement = dplyr::na_if(.data$reablement, 9L)) %>%
# fix NA hc_service
dplyr::mutate(hc_service = tidyr::replace_na(.data$hc_service, 0L)) %>%
# fill reablement when missing but present in group
dplyr::group_by(
.data$sending_location,
.data$social_care_id,
.data$hc_service_start_date
) %>%
# fill reablement when missing but present in group
dplyr::group_by(
.data$sending_location,
.data$social_care_id,
.data$hc_service_start_date
) %>%
tidyr::fill(.data$reablement, .direction = "updown") %>%
dplyr::mutate(reablement = tidyr::replace_na(.data$reablement, 9L)) %>%
dplyr::ungroup()
Expand Down

0 comments on commit 7f6b4ff

Please sign in to comment.