From de632a218d10152821459e8e1ed2560051f8a53f Mon Sep 17 00:00:00 2001 From: alisiachiadorana Date: Thu, 23 Dec 2021 10:29:27 +0100 Subject: [PATCH] ex2html --- module2/exo2/exercice_fr.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module2/exo2/exercice_fr.html b/module2/exo2/exercice_fr.html index 958df92..5aa87cb 100644 --- a/module2/exo2/exercice_fr.html +++ b/module2/exo2/exercice_fr.html @@ -203,6 +203,8 @@ x <- 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 result.mean <- mean(x) result.max <- max(x) result.min <- min(x) +result.median <- round(median(x),digits=2) +result.ecarttype <- round(sd(x),digits=2) M=round(result.mean,digits=2) print(M)
## [1] 14.11
@@ -210,6 +212,10 @@ print(M)
## [1] 23.4
print(result.min)
## [1] 2.8
+
print(round(median(x),digits=2))
+
## [1] 14.5
+
print(round(sd(x),digits=2))
+
## [1] 4.33
-- 2.18.1