-
Notifications
You must be signed in to change notification settings - Fork 4
/
16-exercices.Rmd
69 lines (35 loc) · 1.12 KB
/
16-exercices.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Exercices et corrections
## Exercice 1
```{r mod5_exo1_cor, child=charge_exo('m5', 'exo1.rmd'), echo=TRUE}
```
## Exercice 2
```{r mod5_exo2_cor, child=charge_exo('m5', 'exo2.rmd'), echo=TRUE}
```
## Exercice 3
```{r mod5_exo3_cor, child=charge_exo('m5', 'exo3.rmd'), echo=TRUE}
```
## Exercice 4
```{r mod5_exo4_cor, child=charge_exo('m5', 'exo4.rmd'), echo=TRUE}
```
Astuces, pour avoir la liste des modalités dune variable :
- variables caractères ou factorielles :
```{r, eval=FALSE,message=FALSE,warning=FALSE}
unique(rpls_aggrege$Indicateur)
```
- variables factorielles :
```{r, eval=FALSE,message=FALSE,warning=FALSE}
levels(rpls_aggrege$Indicateur)
```
## Exercice 5
```{r mod5_exo5_cor, child=charge_exo('m5', 'exo5.rmd'), echo=TRUE}
```
## Exercice 6
```{r mod5_exo6_cor, child=charge_exo('m5', 'exo6.rmd'), echo=TRUE}
```
![](https://raw.githubusercontent.com/MTES-MCT/savoirfR/master/vignettes/mod5_exo6_solution-1.gif)
## Exercice 7
```{r mod5_exo7_cor, child=charge_exo('m5', 'exo7.rmd'), echo=TRUE}
```
## Exercice 8
```{r mod5_exo8_cor, child=charge_exo('m5', 'exo8.rmd'), echo=TRUE}
```