From f80c7dfb22742fbc18bc1d917bef7594bf0a90b7 Mon Sep 17 00:00:00 2001 From: 8ecd131462db0a88405c9503984c01ac <8ecd131462db0a88405c9503984c01ac@app-learninglab.inria.fr> Date: Sat, 6 Jun 2026 19:11:34 +0000 Subject: [PATCH] Update analyse-syndrome-grippal.Rmd --- module3/exo1/analyse-syndrome-grippal.Rmd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78f..c69142f 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -44,7 +44,13 @@ Voici l'explication des colonnes donnée sur le [sur le site d'origine](https:// La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant `skip=1`. ### Téléchargement ```{r} -data = read.csv(data_url, skip=1) +local_file = "incidence-PAY-3.csv" + +if (!file.exists(local_file)) { + download.file(url = data_url, destfile = local_file, method = "auto") +} + +data = read.csv(local_file, skip=1) ``` Regardons ce que nous avons obtenu: -- 2.18.1