diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index f3d10e4ebafee570a124b1270153ed55633b2be2..a7ed8ab58e9747b3b9397a3ebfc25c8ea61b6173 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)