Commit 3490b92f authored by Ana Sodan's avatar Ana Sodan

Exo 1

parent da3eb0a6
......@@ -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)
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment