diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78faac371f23c921f7f7aecc87f2100e9059..912a8928a03f5a42199feb49f87502b887f477d2 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: