Commit ee3f00f9 authored by Melanie Pelegrini's avatar Melanie Pelegrini

Une petite correction pour récupérer les années d'incidence maximale et minimale.

parent 2293fef2
......@@ -193,8 +193,8 @@ hist(inc_annuelle$incidence, breaks=10, xlab="Incidence annuelle", ylab="Nb d'ob
Maintenant, on veut récupérer l'année d'incidence minimale et l'année d'incidence maximale :
```{r}
inc_annuelle[which.max(inc_annuelle$incidence), 1]
inc_annuelle[which.max(inc_annuelle$incidence), "annee"]
```
```{r}
inc_annuelle[which.min(inc_annuelle$incidence), 1]
inc_annuelle[which.min(inc_annuelle$incidence), "annee"]
```
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