From 1b2597cf0a21b620a59749c3806091b73914b6c2 Mon Sep 17 00:00:00 2001 From: 06fc6c1f57ec5ec50b0e9dacf56cc6d8 <06fc6c1f57ec5ec50b0e9dacf56cc6d8@app-learninglab.inria.fr> Date: Thu, 30 May 2024 13:25:06 +0000 Subject: [PATCH] Update analyse-syndrome-grippal.Rmd --- module3/exo1/analyse-syndrome-grippal.Rmd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78f..20da42f 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -47,6 +47,22 @@ La première ligne du fichier CSV est un commentaire, que nous ignorons en préc data = read.csv(data_url, skip=1) ``` +Copier les données téléchargées dans un fichier local + +```{r} +write.table(data, "C:/Users/cc270930/Desktop/MOOC recherche reproductible/Module 3 - La main à la pâte, une analyse réplicable/dataGrippe.csv", + row.names = FALSE, sep = ";", dec=",", na = "-") +``` + + +Lire le fichier CSV sauvegardé en local + +```{r} +data = read.csv("C:/Users/cc270930/Desktop/MOOC recherche reproductible/Module 3 - La main à la pâte, une analyse réplicable/dataGrippe.csv", + sep = ";", header = TRUE, na = "-") +``` + + Regardons ce que nous avons obtenu: ```{r} head(data) -- 2.18.1