From 430e60a912f0a750cb5e50cf4d49bcc073de46d0 Mon Sep 17 00:00:00 2001 From: Konrad Hinsen Date: Thu, 14 Mar 2019 17:34:40 +0100 Subject: [PATCH] Petites corrections --- .../influenza-like-illness-analysis-orgmode+R_fr.org | 5 ++--- .../ressources/influenza-like-illness-analysis-orgmode.org | 4 ++-- .../ressources/influenza-like-illness-analysis-rstudio.Rmd | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module3/ressources/influenza-like-illness-analysis-orgmode+R_fr.org b/module3/ressources/influenza-like-illness-analysis-orgmode+R_fr.org index 2d93296..d2fc753 100644 --- a/module3/ressources/influenza-like-illness-analysis-orgmode+R_fr.org +++ b/module3/ressources/influenza-like-illness-analysis-orgmode+R_fr.org @@ -59,14 +59,13 @@ Voici l'explication des colonnes donnée sur [[https://ns.sentiweb.fr/incidence/ | ~geo_name~ | Libellé de la zone géographique (ce libellé peut être modifié sans préavis) | ** Téléchargement -La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant `skip=1`. +La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant ~skip=1~. #+BEGIN_SRC R :session :results silent :var url=data-url data = read.csv(trimws(url), skip=1) #+END_SRC -Après avoir téléchargé les données, nous commençons par l'extraction des données qui nous intéressent. D'abord nous découpons le contenu du fichier en lignes, dont nous jetons la première qui ne contient qu'un commentaire. Les autres lignes sont découpées en colonnes. - +Regardons ce que nous avons obtenu ! #+BEGIN_SRC R :results output head(data) tail(data) diff --git a/module3/ressources/influenza-like-illness-analysis-orgmode.org b/module3/ressources/influenza-like-illness-analysis-orgmode.org index f9ff9ce..6c8b47a 100644 --- a/module3/ressources/influenza-like-illness-analysis-orgmode.org +++ b/module3/ressources/influenza-like-illness-analysis-orgmode.org @@ -1,5 +1,5 @@ #+TITLE: Incidence of influenza-like illness in France -#+LANGUAGE: fr +#+LANGUAGE: en #+OPTIONS: *:nil num:1 toc:t # #+HTML_HEAD: @@ -122,7 +122,7 @@ for week, inc in data: No problem - fine! -** Data conversion +** Date conversion In order to facilitate the subsequent treatment, we replace the ISO week numbers by the dates of each week's Monday. This is also a good occasion to sort the lines by increasing data, and to convert the incidences from strings to integers. #+BEGIN_SRC python :results silent diff --git a/module3/ressources/influenza-like-illness-analysis-rstudio.Rmd b/module3/ressources/influenza-like-illness-analysis-rstudio.Rmd index 48eb912..8047fa0 100644 --- a/module3/ressources/influenza-like-illness-analysis-rstudio.Rmd +++ b/module3/ressources/influenza-like-illness-analysis-rstudio.Rmd @@ -41,8 +41,9 @@ 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 | -The first line of the CSV file is a comment, which we ignore with `skip=1`. ### Download + +The first line of the CSV file is a comment, which we ignore with `skip=1`. ```{r} data = read.csv(data_url, skip=1) ``` -- 2.18.1