Update exercice_en.Rmd

parent adab25fe
...@@ -18,31 +18,31 @@ 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.3, ...@@ -18,31 +18,31 @@ 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.3,
## Exercice 02-2 ## Exercice 02-2
###1. What is the average ? ### 1. What is the average ?
```{r} ```{r}
round(mean(x), digits=2) round(mean(x), digits=2)
``` ```
###2. What is the minimum ? ### 2. What is the minimum ?
```{r} ```{r}
round(min(x), digits=2) round(min(x), digits=2)
``` ```
###3. What is the maximum ? ### 3. What is the maximum ?
```{r} ```{r}
round(max(x), digits=2) round(max(x), digits=2)
``` ```
###4. What is the median ? ### 4. What is the median ?
```{r} ```{r}
round(median(x), digits=2) round(median(x), digits=2)
``` ```
###5. What is the standard deviation ? ### 5. What is the standard deviation ?
```{r} ```{r}
round(sd(x), digits=2) round(sd(x), digits=2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment