From e8512267aa3cfdf0ac0387e7873d127c23fe05aa Mon Sep 17 00:00:00 2001 From: c8c97f9cb8c3a20740b5dc4b6225c706 Date: Wed, 15 Apr 2020 15:55:48 +0000 Subject: [PATCH] Update analyse-syndrome-grippal.Rmd --- module3/exo1/analyse-syndrome-grippal.Rmd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78f..912a892 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -44,7 +44,12 @@ 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("incidence-PAY-3.csv", skip=1) } +else { + data = read.csv(data_url, skip=1) + write.csv(data, file = "incidence-PAY-3.csv") +} ``` Regardons ce que nous avons obtenu: -- 2.18.1