diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78faac371f23c921f7f7aecc87f2100e9059..aa77f0c6c69854d5f0f1d44e3aa620808f1e2529 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -42,9 +42,13 @@ Voici l'explication des colonnes donnée sur le [sur le site d'origine](https:// | `geo_name` | Libellé de la zone géographique (ce libellé peut être modifié sans préavis) | La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant `skip=1`. -### Téléchargement +### Téléchargement et création du fichier CSV local ```{r} -data = read.csv(data_url, skip=1) +data_file = "syndrome-grippal.csv" +if(file.exists(data_file) == FALSE) { + download.file(url = data_url, destfile = data_file, method = "auto") +} +data = read.csv(data_file, header=TRUE) ``` Regardons ce que nous avons obtenu: