From 3490b92fe518c9b5eb8cfb5d7e34bba18e310694 Mon Sep 17 00:00:00 2001 From: Ana Sodan Date: Fri, 15 May 2020 17:11:39 +0200 Subject: [PATCH] Exo 1 --- module3/exo1/AnalyseSyndrome_AS.Rmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module3/exo1/AnalyseSyndrome_AS.Rmd b/module3/exo1/AnalyseSyndrome_AS.Rmd index 4bcd845..7f1aa56 100644 --- a/module3/exo1/AnalyseSyndrome_AS.Rmd +++ b/module3/exo1/AnalyseSyndrome_AS.Rmd @@ -15,14 +15,18 @@ knitr::opts_chunk$set(echo = TRUE) data_url="https://www.sentiweb.fr/datasets/incidence-PAY-3.csv" ``` + +J'appelle mon fichier comme je veux dans data_file. Ensuite je le télécharge selon l'url donné précédemment s'il n'exite pas avec le nom donné dans data_file ```{r} data_file="syndrome-grippal.csv" + + if(!file.exists(data_file)){download.file(data_url,data_file,method="auto")} ``` ```{r} -data=read.csv(data_url,skip=1) +data=read.csv(data_file,skip=1) head (data) ``` -- 2.18.1