class: center, middle, inverse, title-slide .title[ # Assignations ] .author[ ### Introduction à l’analyse de données avec R
The R Bootcamp
] .date[ ### Juin 2023 ] --- layout: true <div class="my-footer"> <span style="text-align:center"> <span> <img src="https://raw.githubusercontent.com/therbootcamp/therbootcamp.github.io/master/_sessions/_image/by-sa.png" height=14 style="vertical-align: middle"/> </span> <a href="https://therbootcamp.github.io/"> <span style="padding-left:82px"> <font color="#7E7E7E"> www.therbootcamp.com </font> </span> </a> <a href="https://therbootcamp.github.io/"> <font color="#7E7E7E"> Introduction à l'analyse de données avec R | Juin 2023 </font> </a> </span> </div> --- .pull-left4[ # Agenda <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span><high>Assignations</high><br></span></li> <ul class="level"> <li><span>Objet <mono><-</mono> Fonction</span></li> <li><span><mono><-</mono> crée un Objet</span></li> <li><span><mono><-</mono> change un Objet</span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ <br><br> <p align = "center"> <img src="image/goodcode.png" height=500px><br> <font style="font-size:10px">from <a href="https://xkcd.com//">xkcd.com</a></font> </p> ] --- # Objet <mono><-</mono> Fonction .pull-left5[ <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span>Assignations<br></span></li> <ul class="level"> <li><span><high>Objet <mono><-</mono> Fonction</high></span></li> <li><span><mono><-</mono> crée un Objet</span></li> <li><span><mono><-</mono> change un Objet</span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ <p align="center"> <img src="image/assignment.png"> </p> ] --- # <mono><-</mono> crée un Objet .pull-left5[ <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span>Assignations<br></span></li> <ul class="level"> <li><span>Objet <mono><-</mono> Fonction</span></li> <li><span><high><mono><-</mono> crée un Objet</high></span></li> <li><span><mono><-</mono> change un Objet</span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ ```r # un objet nommé one_two_three one_two_three <- c(1, 2, 3) # imprimer l'objet print(one_two_three) ``` ``` ## [1] 1 2 3 ``` ```r # imprimer l'objet one_two_three ``` ``` ## [1] 1 2 3 ``` ] --- # <mono><-</mono> crée un Objet .pull-left5[ <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span>Assignations<br></span></li> <ul class="level"> <li><span>Objet <mono><-</mono> Fonction</span></li> <li><span><high><mono><-</mono> crée un Objet</high></span></li> <li><span><mono><-</mono> change un Objet</span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ ```r # un objet nommé one_two_three one_two_three <- c(1, 2, 3) # calculer la moyenne mean(one_two_three) ``` ``` ## [1] 2 ``` ] --- # <mono><-</mono> crée un Objet .pull-left5[ <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span>Assignations<br></span></li> <ul class="level"> <li><span>Objet <mono><-</mono> Fonction</span></li> <li><span><high><mono><-</mono> crée un Objet</high></span></li> <li><span><mono><-</mono> change un Objet</span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ ```r # un objet nommé one_two_three one_two_three <- c(1, 2, 3) # calculer la moyenne result <- mean(one_two_three) # imprimer le résultat result ``` ``` ## [1] 2 ``` ] --- # <mono><-</mono> crée un Objet .pull-left5[ <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span>Assignations<br></span></li> <ul class="level"> <li><span>Objet <mono><-</mono> Fonction</span></li> <li><span><high><mono><-</mono> crée un Objet</high></span></li> <li><span><mono><-</mono> change un Objet</span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ ```r # un objet nommé one_two_three one_two_three <- c(1, 2, 3) # calculer la moyenne result <- mean(one_two_three) # utiliser le résultat result * 10 ``` ``` ## [1] 20 ``` ] --- # <mono><-</mono> change un Objet .pull-left5[ <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span>Assignations<br></span></li> <ul class="level"> <li><span>Objet <mono><-</mono> Fonction</span></li> <li><span><mono><-</mono> crée un Objet</span></li> <li><span><high><mono><-</mono> change un Objet</high></span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ ```r # un objet nommé one_two_three one_two_three <- c(1, 2, 3) # imprimer l'objet one_two_three ``` ``` ## [1] 1 2 3 ``` ```r # imprimer l'objet + 100 one_two_three + 100 ``` ``` ## [1] 101 102 103 ``` ```r # imprimer l'objet one_two_three ``` ``` ## [1] 1 2 3 ``` ] --- # <mono><-</mono> change un Objet .pull-left5[ <ul> <li class="m1g"><span>R(Studio)</span></li> <li class="m2"><span>Assignations<br></span></li> <ul class="level"> <li><span>Objet <mono><-</mono> Fonction</span></li> <li><span><mono><-</mono> crée un Objet</span></li> <li><span><high><mono><-</mono> change un Objet</high></span></li> </ul> </span><br> <li class="m3g"><span>Fonctions</span></li> <li class="m4g"><span>Données I/O</a></span></li> <li class="m5g"><span>Analyse</span></li> </ul> ] .pull-right5[ ```r # un objet nommé one_two_three one_two_three <- c(1, 2, 3) # imprimer l'objet one_two_three ``` ``` ## [1] 1 2 3 ``` ```r # changer l'objet one_two_three <- one_two_three + 100 # imprimer l'objet one_two_three ``` ``` ## [1] 101 102 103 ``` ] --- class: middle, center <h1><high>Exercices</high></h1>