From 94c1b20130f16cc3fd5d603f846205d06eaa1a93 Mon Sep 17 00:00:00 2001 From: 3f40cf851e6f25b485f8276e3bffbe11 <3f40cf851e6f25b485f8276e3bffbe11@app-learninglab.inria.fr> Date: Tue, 23 Feb 2021 15:32:42 +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..f6430c0 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) + +if (!file.exists("incidence-PAY-3.csv"){ + data = read.csv(data_url, skip=1) + write.csv(data, "incidence-PAY-3.csv") +} else { + data = read.csv("incidence-PAY-3.csv") +} ``` Regardons ce que nous avons obtenu: -- 2.18.1