diff --git a/module3/exo1/influenza-like-illness-analysis.Rmd b/module3/exo1/influenza-like-illness-analysis.Rmd index 8047fa03d3d3cc003416749dd44be6adbb072d04..5337f6e7c860cd4f3e108b59ca4980bd3b7ff9cb 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: