diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78faac371f23c921f7f7aecc87f2100e9059..11afb109dcfb4742ed08dd58ccf8b6694714b218 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -44,7 +44,16 @@ 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) +fpath="E:/git/mooc-rr/module3/exo1/incidence-PAY-3.csv" + +if ( !file.exists(fpath) ){ + # non local: download + fm<-readLines(data_url) + # write on disk + write(fm,fpath) + } +# oui, il est local : read local disk +data = read.csv(fpath, skip=1) ``` Regardons ce que nous avons obtenu: