From d7ff9c523ccfa3683303f7f0604de76c2ddec177 Mon Sep 17 00:00:00 2001 From: 15900e6525d86148f1e934934f31b393 <15900e6525d86148f1e934934f31b393@app-learninglab.inria.fr> Date: Mon, 20 Sep 2021 20:47:29 +0000 Subject: [PATCH] Update influenza-like-illness-analysis.Rmd --- module3/exo1/influenza-like-illness-analysis.Rmd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/module3/exo1/influenza-like-illness-analysis.Rmd b/module3/exo1/influenza-like-illness-analysis.Rmd index 8047fa0..2f19de5 100644 --- a/module3/exo1/influenza-like-illness-analysis.Rmd +++ b/module3/exo1/influenza-like-illness-analysis.Rmd @@ -45,7 +45,15 @@ This is the documentation of the data from [the download site](https://ns.sentiw The first line of the CSV file is a comment, which we ignore with `skip=1`. ```{r} -data = read.csv(data_url, skip=1) +data_file = "syndrome-grippal.csv" +if (!file.exists(data_file)) { + download.file(data_url, data_file, method="auto") +} +``` + +### Lecture +```{r} +data = read.csv(data_file, skip=1) ``` Let's have a look at what we got: -- 2.18.1