diff --git a/module3/exo1/AnalyseSyndrome_AS.Rmd b/module3/exo1/AnalyseSyndrome_AS.Rmd index 4bcd845a518ec270250b575fbc97be6fb24bf5d8..7f1aa560aa317a772107221a4caa3ca87e754057 100644 --- a/module3/exo1/AnalyseSyndrome_AS.Rmd +++ b/module3/exo1/AnalyseSyndrome_AS.Rmd @@ -15,14 +15,18 @@ knitr::opts_chunk$set(echo = TRUE) data_url="https://www.sentiweb.fr/datasets/incidence-PAY-3.csv" ``` + +J'appelle mon fichier comme je veux dans data_file. Ensuite je le télécharge selon l'url donné précédemment s'il n'exite pas avec le nom donné dans data_file ```{r} data_file="syndrome-grippal.csv" + + if(!file.exists(data_file)){download.file(data_url,data_file,method="auto")} ``` ```{r} -data=read.csv(data_url,skip=1) +data=read.csv(data_file,skip=1) head (data) ```