diff --git a/module3/exo1/influenza-like-illness-analysis.Rmd b/module3/exo1/influenza-like-illness-analysis.Rmd index 2f19de5b6c021ada4515e87bfcae1afb56f78bad..af27f47276616bc4c00a3736d2d21ff0b66ccb66 100644 --- a/module3/exo1/influenza-like-illness-analysis.Rmd +++ b/module3/exo1/influenza-like-illness-analysis.Rmd @@ -25,6 +25,15 @@ The data on the incidence of influenza-like illness are available from the Web s ```{r} data_url = "http://www.sentiweb.fr/datasets/incidence-PAY-3.csv" ``` +### Download + +The first line of the CSV file is a comment, which we ignore with `skip=1`. +```{r} +data_file = "syndrome-grippal.csv" +if (!file.exists(data_file)) { + download.file(data_url, data_file, method="auto") +} +``` This is the documentation of the data from [the download site](https://ns.sentiweb.fr/incidence/csv-schema-v1.json): @@ -41,15 +50,6 @@ This is the documentation of the data from [the download site](https://ns.sentiw | `geo_insee` | Identifier of the geographic area, from INSEE https://www.insee.fr | | `geo_name` | Geographic label of the area, corresponding to INSEE code. This label is not an id and is only provided for human reading | -### Download - -The first line of the CSV file is a comment, which we ignore with `skip=1`. -```{r} -data_file = "syndrome-grippal.csv" -if (!file.exists(data_file)) { - download.file(data_url, data_file, method="auto") -} -``` ### Lecture ```{r}