From fec5077438a06a94d9eea50b84e5a74f5df4c3c0 Mon Sep 17 00:00:00 2001 From: Sarah Chabert Date: Mon, 7 Jul 2025 09:28:18 +0200 Subject: [PATCH] =?UTF-8?q?J'ai=20compl=C3=A9t=C3=A9=20l'exercice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module3/exo1/analyse-syndrome-grippal.Rmd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 2503994..96edf4d 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -32,15 +32,19 @@ Plutôt que d'ouvrir à chaque fois le fichier à partir du réseau, on l'enregi ```{r} -donnees_grippe <- read.csv(data_url) +donnees_grippe <- write.csv(donnees_grippe, file = "C:/Users/Sarah Chabert/Documents/mooc-rr/module3/exo1/donnees_grippe.csv", row.names = FALSE) + + +if (!file.exists("C:/Users/Sarah Chabert/Documents/mooc-rr/module3/exo1/donnees_grippe.csv")) { write.csv(donnees_grippe, file = "C:/Users/Sarah Chabert/Documents/mooc-rr/module3/exo1/donnees_grippe.csv", row.names = FALSE) +} ``` Voici l'explication des colonnes donnée sur le [sur le site d'origine](https://ns.sentiweb.fr/incidence/csv-schema-v1.json): | Nom de colonne | Libellé de colonne | -|--------------|----------------------------------------------------------| +|-----------------|-------------------------------------------------------| | `week` | Semaine calendaire (ISO 8601) | | `indicator` | Code de l'indicateur de surveillance | | `inc` | Estimation de l'incidence de consultations en nombre de cas | -- 2.18.1