From 43bd98479af6b49c2e95662a7cdddb1a90b998c3 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 24 May 2021 18:58:54 +0200 Subject: [PATCH] =?UTF-8?q?Solution=20finale=20propos=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module3/exo1/analyse-syndrome-grippal.Rmd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index b03f640..3ec4aa6 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -44,13 +44,18 @@ Voici l'explication des colonnes donnée sur le [sur le site d'origine](https:// La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant `skip=1`. ### Téléchargement ```{r} +# Je charge le package contenant la fonction d'importation library(readr) + +# Je pointe le document source setwd("C:/Users/Paul Faye/Desktop/MOOC-RR/module3/exo1/") + +# Je demande de télécharger le fichier "incidence_PAY_3.csv" s'il n'existe pas dans le répertoire courant donnees = "incidence_PAY_3.csv" if (!file.exists(donnees)) { download.file(data_url, donnees, method="auto") } - +# j'import enfin les données data = read_csv(donnees, skip = 1) ``` -- 2.18.1