From 5790bb12fd2e699d24a90574de7d0cd4507941c3 Mon Sep 17 00:00:00 2001 From: e3745b2bddcef4c7e78f77c65f8ad342 Date: Wed, 27 Oct 2021 16:28:53 +0000 Subject: [PATCH] Update analyse-syndrome-grippal.Rmd --- module3/exo1/analyse-syndrome-grippal.Rmd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index f3d10e4..a7ed8ab 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -47,8 +47,16 @@ La première ligne du fichier CSV est un commentaire, que nous ignorons en préc data = read.csv(data_url, skip=1) ``` Les données ont également été téléchargé dans un fichier local (accord du serveur). +```{r} +data_file = "syndrome-grippal.csv" +if (!file.exists(data)) { + download.file(data_url, data, method="auto") +} +``` +### Lecture des données téléchargées +```{r} data = read.csv(data, skip=1) - +``` Regardons ce que nous avons obtenu: ```{r} head(data) -- 2.18.1