From f5c26bad79490c813410771d8fbe8557f2b8f8f7 Mon Sep 17 00:00:00 2001 From: Rima Nait-Saidi Date: Mon, 28 Dec 2020 15:34:37 +0100 Subject: [PATCH] correction --- module3/exo1/analyse-syndrome-grippal.Rmd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 8fa4957..8b3fafd 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -11,6 +11,15 @@ knitr::opts_chunk$set(echo = TRUE) Chargement du document à partir de l'URL: data_url = "https://www.sentiweb.fr/datasets/incidence-PAY-3.csv" +data_file = "syndrome-grippal.csv" +Là on peut voir les lignes (1) où des données sont manquantes: +if (!file.exists(data_file)) { + + download.file(data_url, data_file, method="auto") +lignes_na = apply(data, 1, function(x) any(is.na(x))) +} +data[lignes_na,] + ```{r} library(readr) -- 2.18.1