From 92228c9e0be7ac1eb9c5808bb298f0f552900690 Mon Sep 17 00:00:00 2001 From: Thibault Leboucher Date: Tue, 5 May 2020 16:29:00 +0200 Subject: [PATCH] resolution_exo2_suite --- module2/exo2/exercice_fr.Rmd | 19 +- module2/exo2/exercice_fr.html | 444 ++++++++++++++++++++++++++++++++++ 2 files changed, 461 insertions(+), 2 deletions(-) create mode 100644 module2/exo2/exercice_fr.html diff --git a/module2/exo2/exercice_fr.Rmd b/module2/exo2/exercice_fr.Rmd index d9d3579..5637aff 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 0000000..f2c16c3 --- /dev/null +++ b/module2/exo2/exercice_fr.html @@ -0,0 +1,444 @@ + + + + + + + + + + + + + + + +Module 2 - Exercice 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+

Moyenne

+
round(mean(vec),2)
+
## [1] 14.11
+
+
+

Minimum

+
round(min(vec),2)
+
## [1] 2.8
+
+
+

Maximum

+
round(max(vec),2)
+
## [1] 23.4
+
+
+

Médiane

+
round(median(vec),2)
+
## [1] 14.5
+
+
+

Écart-type

+
round(sd(vec),2)
+
## [1] 4.33
+
+ + + + +
+ + + + + + + + + + + + + + + -- 2.18.1