Skip to content

Commit

Permalink
Update 0_excess_deaths_global_estimates_autoupdater.R
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreus authored Jan 26, 2024
1 parent 6edc336 commit 8523d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/0_excess_deaths_global_estimates_autoupdater.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,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) < 60){
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]
Expand Down

0 comments on commit 8523d15

Please sign in to comment.