From c7cc5f0de43c0905cc2c2b5023718016e9f36c24 Mon Sep 17 00:00:00 2001 From: Rob Ashton Date: Wed, 11 Dec 2024 13:40:40 +0000 Subject: [PATCH] Remove difference, calculate this in the front end --- R/input-comparison.R | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/R/input-comparison.R b/R/input-comparison.R index bb30d6c7..c7645cc0 100644 --- a/R/input-comparison.R +++ b/R/input-comparison.R @@ -134,10 +134,9 @@ prepare_anc_spectrum_comparison <- function(anc, shape, pjnz) { dat |> dplyr::mutate( sex = "female", age_group = "Y015_049", - group = "anc_adult_female", - difference = value_spectrum - value_naomi) |> + group = "anc_adult_female") dplyr::select(indicator, area_name, year, group, - value_spectrum, value_naomi, difference) + value_spectrum, value_naomi) }