From 82551f315631c1fa5b7410b2efa8811522c2ba37 Mon Sep 17 00:00:00 2001 From: bf247e44d3a971ad527e0b2ecda3ccd7 Date: Tue, 29 Aug 2023 15:47:53 +0000 Subject: [PATCH] Calcul mean, max, min, median, sd --- module2/exo2/exercice_fr.Rmd | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/module2/exo2/exercice_fr.Rmd b/module2/exo2/exercice_fr.Rmd index be5529e..95693d2 100644 --- a/module2/exo2/exercice_fr.Rmd +++ b/module2/exo2/exercice_fr.Rmd @@ -1,8 +1,17 @@ -# A propos du calcul de pi -__Arnaud Legrand__ -__25 juin 2018__ +# Exercice 2-2 -## En demandant à la lib maths +Téléchargement du jeu de données format CSV +```{r} +library(readr) +exercice2_3v3 <- read_csv("D:/exercice2-3v3.csv", + locale = locale(decimal_mark = ",")) +View(exercice2_3v3) +``` + +Calcul de la moyenne, la médiane, le min et le max (fonction summary), et de l'écart type (fonction sd) +```{r} +summary(exercice2_3v3) +sd(exercice2_3v3) +``` -Mon ordinateur m'indique que π vaut approximativement -- 2.18.1