diff --git a/module2/exo2/exercice_fr.Rmd b/module2/exo2/exercice_fr.Rmd index a149d4c75752cc4cc34ab957e3bed2435c75c147..3eec465466203dcb83e8937afbc1ce7f8ec6034d 100644 --- a/module2/exo2/exercice_fr.Rmd +++ b/module2/exo2/exercice_fr.Rmd @@ -18,9 +18,9 @@ liste = 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 1. Quelle est la moyenne ? ```{r} -mean(liste) +round(mean(liste), 2) ``` - +La fonction round(x, digits =2) permet d'afficher 2 chiffres significatifs 2. Quel est le minimum ? ```{r} min(liste) @@ -38,8 +38,9 @@ median(liste) 5. Quel est l'écart-type ? ```{r} -sd(liste) +round(sd(liste),2) ``` +