From 30e965ae9346e6b1cbb4b58108a39439f8b3354a Mon Sep 17 00:00:00 2001
From: Thomas  OBADIA <tobadia@ml24-0166.corp.pasteur.fr>
Date: Thu, 5 Dec 2024 14:03:19 +0100
Subject: [PATCH] Following the previous commit, fix a corresponding (non-)
 issue where the raw data was used to get country identifiers but it should
 rather have been the curated data. Impact is non-existent, but better be safe
 than sorry.

---
 02_OBSERVATIONAL/OBSERVATIONAL_02_curate_REDCap_raw_data.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/02_OBSERVATIONAL/OBSERVATIONAL_02_curate_REDCap_raw_data.R b/02_OBSERVATIONAL/OBSERVATIONAL_02_curate_REDCap_raw_data.R
index 698e9ab..b919c74 100644
--- a/02_OBSERVATIONAL/OBSERVATIONAL_02_curate_REDCap_raw_data.R
+++ b/02_OBSERVATIONAL/OBSERVATIONAL_02_curate_REDCap_raw_data.R
@@ -65,7 +65,7 @@ dat_observational_curated <- dat_observational_raw %>%
 ## Name of output file
 OBSERVATIONAL_OUT_02_FILENAME <- paste0("OBSERVATIONAL_OUT_02_raw-curated_data", 
                                         "_country-", 
-                                        paste(unique(dat_observational_raw$country), collapse = "-"), 
+                                        paste(unique(dat_observational_curated$country), collapse = "-"), 
                                         "_timestamp-", 
                                         strftime(Sys.time(), format = "%Y%m%d_%H%M%S"), 
                                         ".csv")
-- 
GitLab