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
505fe6a36394994477d17bbc67d2df27
mooc-rr
Commits
fd674128
Commit
fd674128
authored
May 11, 2020
by
505fe6a36394994477d17bbc67d2df27
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 1 analyse-syndrome-grippal.Rmd
parent
a3f84022
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
analyse-syndrome-grippal.Rmd
module3/exo1/analyse-syndrome-grippal.Rmd
+7
-1
No files found.
module3/exo1/analyse-syndrome-grippal.Rmd
View file @
fd674128
...
...
@@ -17,6 +17,7 @@ header-includes:
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
#install.packages("parsedate")
```
## Préparation des données
...
...
@@ -44,7 +45,12 @@ 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)
# 1. Si le fichier local n'existe pas, téléchargez les données et déposez-les dans le fichier local.
# 2. Lisez le fichier CSV local.
if (file.exists("C:/Users/YOH/Documents/FUN_MOOC/RR/Module3/exo1/incidence-PAY-3B.csv")==FALSE)
data=write.csv(x = read.csv(data_url, skip=1), file = "incidence-PAY-3B.csv") else data = read.csv("C:/Users/YOH/Documents/FUN_MOOC/RR/Module3/exo1/incidence-PAY-3B.csv")
```
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