Commit 954ab28b authored by amarell's avatar amarell

Added answer to Exercise 02 (3rd part) to module2/exo/exercice_en.Rmd

parent 48e56cd5
--- ---
title: "Exercice 02 (2nd part)" title: "Exercices Module 2"
author: "Anders Mårell" author: "Anders Mårell"
date: "2023-06-09" date: "2023-06-09"
output: html_document output: html_document
...@@ -12,7 +12,8 @@ editor_options: ...@@ -12,7 +12,8 @@ editor_options:
knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(echo = TRUE)
``` ```
# Doing a simple calculation on your own # Exercice 02 (2nd part)
## Doing a simple calculation on your own
Compute the mean and the standard variation, the minimum, the median, and the maximum of the following data set: Compute the mean and the standard variation, the minimum, the median, and the maximum of the following data set:
...@@ -51,3 +52,18 @@ We can also use summary: ...@@ -51,3 +52,18 @@ We can also use summary:
summary(x) summary(x)
``` ```
# Exercise 02 (3rd part)
## Data visualization
Reproduce the first figure (sequence plot):
```{r}
plot(x, type = "l")
```
Reproduce the second figure (histogram):
```{r}
hist(x)
```
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