diff --git a/MOOC-RR.Rproj b/MOOC-RR.Rproj new file mode 100644 index 0000000000000000000000000000000000000000..8e3c2ebc99e2e337f7d69948b93529a437590b27 --- /dev/null +++ b/MOOC-RR.Rproj @@ -0,0 +1,13 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index 24f94632a21afd42aeac11112397fce11a1b4fc5..b03f640e42c413dd00c085498812a8be1274ea7e 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -46,7 +46,12 @@ La première ligne du fichier CSV est un commentaire, que nous ignorons en préc ```{r} library(readr) setwd("C:/Users/Paul Faye/Desktop/MOOC-RR/module3/exo1/") -data = read_csv("incidence_PAY_3.csv", skip = 1) +donnees = "incidence_PAY_3.csv" +if (!file.exists(donnees)) { + download.file(data_url, donnees, method="auto") +} + +data = read_csv(donnees, skip = 1) ``` Regardons ce que nous avons obtenu: