From fc281693aeace77032d2ddfaba0a78e83b3bef70 Mon Sep 17 00:00:00 2001 From: 410ca550917f998a3e6d0c05744d62c4 <410ca550917f998a3e6d0c05744d62c4@app-learninglab.inria.fr> Date: Wed, 1 Apr 2020 08:32:42 +0000 Subject: [PATCH] Update data read.csv --- module3/exo1/analyse-syndrome-grippal.Rmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78f..6b4ba6b 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -44,7 +44,11 @@ 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("data.csv") == 1) { + data = read.csv("data.csv, skip=1) + } else { + data = read.csv(data_url, skip=1) +} ``` Regardons ce que nous avons obtenu: -- 2.18.1