From 0286d84742da3f87649c1a73eff4226fa328ff1d Mon Sep 17 00:00:00 2001 From: Sondre Ulvund Solstad Date: Fri, 26 Jan 2024 14:14:39 +0000 Subject: [PATCH] Update 0_excess_deaths_global_estimates_autoupdater_A.R --- scripts/0_excess_deaths_global_estimates_autoupdater_A.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/0_excess_deaths_global_estimates_autoupdater_A.R b/scripts/0_excess_deaths_global_estimates_autoupdater_A.R index 5065d0e4c2..8cd72a3a9d 100644 --- a/scripts/0_excess_deaths_global_estimates_autoupdater_A.R +++ b/scripts/0_excess_deaths_global_estimates_autoupdater_A.R @@ -136,7 +136,7 @@ for(i in c('daily_covid_cases_per_100k_sub_region_average', 'daily_covid_cases_per_100k_econ_region_average')){ if(any(is.na(X[, i]))){ temp <- X[X$date == max(X$date[X$date != max(X$date)]), c('iso3c', 'date', i)] - if(temp$date[1] - max(X$date) < 14){ + if(temp$date[1] - max(X$date) < 90){ for(j in unique(X$iso3c[X$date == max(X$date)])){ if(is.na(X[X$iso3c == j & X$date == max(X$date), i])){ X[X$iso3c == j & X$date == max(X$date), i] <- temp[temp$iso3c == j, i]