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 2d93296317414d2b8aec1b26aedb8a535efc1c96..d2fc753e3d9ffc909fd48abf1a807cfba82c21e0 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 f9ff9ce64216504420e994cc1508838c951350c7..6c8b47ad2eefaa2efae0fcda6640ec8b078e7c32 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 48eb9126b06fc5a1e720f6e2055f8b24353596ac..8047fa03d3d3cc003416749dd44be6adbb072d04 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) ```