From ce8ccfb4e497a5eba072065733f56113bd0d1e6f Mon Sep 17 00:00:00 2001 From: 41e993c5aefb47b44587146f418e5709 <41e993c5aefb47b44587146f418e5709@app-learninglab.inria.fr> Date: Mon, 29 Sep 2025 14:06:21 +0000 Subject: [PATCH] Update influenza-like-illness-analysis.Rmd --- module3/exo1/influenza-like-illness-analysis.Rmd | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module3/exo1/influenza-like-illness-analysis.Rmd b/module3/exo1/influenza-like-illness-analysis.Rmd index 8047fa0..5337f6e 100644 --- a/module3/exo1/influenza-like-illness-analysis.Rmd +++ b/module3/exo1/influenza-like-illness-analysis.Rmd @@ -1,4 +1,17 @@ --- +# Vérifier si le fichier local existe, sinon le télécharger +if (!file.exists("module3/exo1/syndrome_grippal.csv")) { + download.file("https://www.sentiweb.fr/datasets/incidence-PAY-FR.csv", + destfile = "module3/exo1/syndrome_grippal.csv", + mode = "wb") +} + +# Charger ensuite les données locales +data <- read.csv("module3/exo1/syndrome_grippal.csv", sep = ";", header = TRUE) + +# Aperçu rapide +head(data) + title: "Incidence of influenza-like illness in France" author: "Konrad Hinsen" output: -- 2.18.1