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
1e0af269ca1624ab357d2cce16ac6d6f
mooc-rr
Commits
8e20aa38
Commit
8e20aa38
authored
Dec 15, 2020
by
Christian Wiat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajout chargement si csv non present en local
parent
0934152e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
analyse-syndrome-grippal.Rmd
module3/exo1/analyse-syndrome-grippal.Rmd
+10
-1
No files found.
module3/exo1/analyse-syndrome-grippal.Rmd
View file @
8e20aa38
...
...
@@ -44,7 +44,16 @@ 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)
fpath="E:/git/mooc-rr/module3/exo1/incidence-PAY-3.csv"
if ( !file.exists(fpath) ){
# non local: download
fm<-readLines(data_url)
# write on disk
write(fm,fpath)
}
# oui, il est local : read local disk
data = read.csv(fpath, skip=1)
```
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