From 212ddc806fd5a7d63690381d287945aeae2ca866 Mon Sep 17 00:00:00 2001 From: marjom02 Date: Wed, 26 Jul 2023 14:39:22 +0100 Subject: [PATCH] remove unnecessary code from `get_anon_chi` `get_anon_chi` was updated in slfhelper v0.10 --- R/run_episode_file.R | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/R/run_episode_file.R b/R/run_episode_file.R index 852a4fd8b..4cae46bc4 100644 --- a/R/run_episode_file.R +++ b/R/run_episode_file.R @@ -110,11 +110,7 @@ run_episode_file <- function( load_ep_file_vars(year) if (anon_chi_out) { - # TODO When slfhelper is updated remove the unnecessary code - episode_file <- episode_file %>% - tidyr::replace_na(list(chi = "")) %>% - slfhelper::get_anon_chi() %>% - dplyr::mutate(anon_chi = dplyr::na_if(.data$anon_chi, "")) + episode_file <- slfhelper::get_anon_chi(episode_file) } if (write_to_disk) {