From 92b530893c79cf77a88a07445c595fd0a0de2010 Mon Sep 17 00:00:00 2001 From: 2a021e207848188bfce52149161999ed <2a021e207848188bfce52149161999ed@app-learninglab.inria.fr> Date: Tue, 13 Jun 2023 13:10:32 +0000 Subject: [PATCH] Update analyse-syndrome-grippal.Rmd --- module3/exo1/analyse-syndrome-grippal.Rmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78f..f98e21d 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -44,7 +44,11 @@ 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} -data = read.csv(data_url, skip=1) +if (!file.exists("data_grippe.csv")) +{data = read.csv(data_url, skip=1) +write.csv(data,file="data_grippe.csv")} + +data = read.csv("data_grippe.csv", skip=1) ``` Regardons ce que nous avons obtenu: -- 2.18.1