diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 771e78faac371f23c921f7f7aecc87f2100e9059..20da42fe88b5fc3c244aa3f8d8c1f61e965ef41e 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)