From 7f6b4ffb9962acde8e63424380149e05e0d8ddd2 Mon Sep 17 00:00:00 2001 From: Jennit07 Date: Tue, 5 Dec 2023 11:44:08 +0000 Subject: [PATCH] Style code --- R/process_sc_all_home_care.R | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/R/process_sc_all_home_care.R b/R/process_sc_all_home_care.R index 0faae2f0a..bc3d3bdfc 100644 --- a/R/process_sc_all_home_care.R +++ b/R/process_sc_all_home_care.R @@ -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()