diff --git a/module2/exo2/exercice_fr.Rmd b/module2/exo2/exercice_fr.Rmd index d9d3579e6452aa734240c1e166d7f5f9ca4b0d27..5637affc804cf6bc5fd825537d2acc9a5fc9c02e 100644 --- a/module2/exo2/exercice_fr.Rmd +++ b/module2/exo2/exercice_fr.Rmd @@ -16,11 +16,26 @@ vec <- c(14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7. ## Moyenne ```{r} -mean(vec) +round(mean(vec),2) +``` + +## Minimum +```{r} +round(min(vec),2) +``` + +## Maximum +```{r} +round(max(vec),2) +``` + +## Médiane +```{r} +round(median(vec),2) ``` ## Écart-type ```{r} -sd(vec) +round(sd(vec),2) ``` diff --git a/module2/exo2/exercice_fr.html b/module2/exo2/exercice_fr.html new file mode 100644 index 0000000000000000000000000000000000000000..f2c16c31f2f170ea2bdeae8f66eb7a7a5311e90d --- /dev/null +++ b/module2/exo2/exercice_fr.html @@ -0,0 +1,444 @@ + + + + +
+ + + + + + + + + + +round(mean(vec),2)
+## [1] 14.11
+round(min(vec),2)
+## [1] 2.8
+round(max(vec),2)
+## [1] 23.4
+round(median(vec),2)
+## [1] 14.5
+round(sd(vec),2)
+## [1] 4.33
+