Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3a63eb7d46e2fd9b4c1f4af226fe8529
mooc-rr
Commits
293b7ed1
Commit
293b7ed1
authored
Sep 08, 2023
by
David Pinaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option to use a local copy of the dataset
parent
46f3b7f4
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2038 additions
and
3 deletions
+2038
-3
incidence-PAY-3.csv
incidence-PAY-3.csv
+2028
-0
analyse-syndrome-grippal.Rmd
module3/exo1/analyse-syndrome-grippal.Rmd
+10
-3
No files found.
incidence-PAY-3.csv
0 → 100644
View file @
293b7ed1
This diff is collapsed.
Click to expand it.
module3/exo1/analyse-syndrome-grippal.Rmd
View file @
293b7ed1
---
title: "Analyse de l'incidence du syndrôme grippal"
author: "
Konrad Hinsen
"
author: "
David Pinaud
"
output:
pdf_document:
toc: true
...
...
@@ -43,8 +43,15 @@ 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)
Le téléchargement se fait s'il n'existe pas une copie locale du fichier téléchargé :
```{r}
if(file.exists("incidence-PAY-3.csv"))
{
data = read.csv("incidence-PAY-3.csv")
} else {
data = read.csv(data_url, skip=1, na.strings = "-")
write.csv(data, "incidence-PAY-3.csv", row.names=FALSE)
}
```
Regardons ce que nous avons obtenu:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment