class: center, middle, inverse, title-slide .title[ # Semillero R ] .subtitle[ ## Sesión 1: Repaso de R Markdown y Tidyverse ] .institute[ ### Universidad Nacional - Universidad de Antioquia ] .date[ ### 2021-03-15 ] --- background-image: url(https://courses.cognitiveclass.ai/asset-v1:BigDataUniversity+RP0101EN+2016+type@asset+block@R-Programming.png) background-position: 50% 50% class: center, bottom, inverse # --- # Top lenguajes de programación 2020 <center> <img src = "img/top.PNG" width = 380 /> </center> .footnote[ [Top Programming Languages 2020 - IEEE.](https://spectrum.ieee.org/at-work/tech-careers/top-programming-language-2020) ] --- # Elementos básicos de R .pull-left[ ### Teclas de acceso rápido - **`Ctrl + Enter`:** ejecutar código. - **`Ctrl + L`:** limpiar la consola. - **`Ctrl + Shift + K`:** compilar documento R Markdown. - **`Ctrl + Alt + i`:** insertar fragmento de R en documento R Markdown. - **`Ctrol + Shift + M`:** obtener operador de tuberÃa (`%>%`). ### Codificación UTF-8 - `File -> Save with Encoding -> UTF-8` ] .pull-right[ ### Tipos de datos en R - Numéricos (`numeric` o `double`) - Enteros (`integer`) - Lógicos (`logical`) - Caracteres (`character`) - Factores (`factor`) ### Aspectos del lenguaje - Discrimina minúsculas de mayúsculas - La asignación se realiza con **`<-`** - El comentario se estable con numeral (`#`) ] --- background-image: url(https://www.tidyverse.org/images/tidyverse-default.png) background-position: 50% 50% class: center, bottom, inverse # --- class: center, middle # Proceso de análisis de datos <center> <img src = "http://r4ds.had.co.nz/diagrams/data-science-communicate.png" /> </center> --- class: center, middle # Proceso de análisis de datos con `tidyverse` <center> <img src = "https://unal-semilleror-facca.github.io/Actividades/01_tidyverse_data_science.png" width = 500 /> </center> --- class: center, middle # Bibliotecas `tidyverse` <center> <img src = "https://ichi.pro/assets/images/max/724/1*tqN3vbNG48n4uBu2gpc3Zw.jpeg" width = 700 /> </center> --- class: inverse, center, middle # R Markdown <center> <img src = "https://static-bcrf.biochem.wisc.edu/courses/Tabular-data-analysis-with-R-and-Tidyverse/book/images/icons/knitr-rmarkdown-logos-50.png" width = 700 /> </center> --- # ¿Qué podemos hacer con R Markdown? <center> <img src = "https://ulyngs.github.io/rmarkdown-workshop-2019/slides/figures/rmarkdown_universe.jpg" width = 700 /> </center> --- # Crear documento R Markdown - `File -> New File -> R Markdown` <center> <img src = "img/rmarkdown.PNG" width = 420 /> </center> .footnote[ [GuÃa para crear documento R Markdown.](https://unal-semilleror-facca.github.io/Actividades/GuiasR.html#crear_r_markdown) ] --- # Componentes de R Markdown - **Metadatos:** ```yaml --- title: "Untitled" author: "Autor" date: "15/3/2021" output: html_document --- ``` - **Fragmentos de R:** ````md ```{r} ``` ```` - **Markdown:** - Texto - Imágenes - HipervÃnculos --- # Elementos básicos de Markdown .pull-left[ #### TÃtulos o encabezados ``` # TÃtulo 1 ## TÃtulo 2 ### TÃtulo 3 ``` #### Insertar imagen ```  ``` #### Opciones de texto - *Cursiva:* asterisco - **Negrilla:** doble asterisco - ***Negrilla cursiva:*** triple asterisco ] .pull-right[ #### Viñetas ``` - Viñeta 1 - Subviñeta 2.1 - Viñeta 2 * Viñeta 1 * Subviñeta 2.1 * Viñeta 2 + Viñeta 1 + Subviñeta 2.1 + Viñeta 2 ``` #### Insertar hipervÃnculo ``` [texto](URL) ``` ] --- # Libro R Markdown <center> <img src = "https://bookdown.org/yihui/rmarkdown/images/cover.png" width = 270/> </center> .footnote[ [R Markdown: The Definitive Guide](https://bookdown.org/yihui/rmarkdown/) ] --- class: inverse, center, middle # `readr` - `readxl` - `dplyr` - `tidyr` <center> <img src = "https://readr.tidyverse.org/logo.png" width = 85 /> </center> <center> <img src = "https://readxl.tidyverse.org/logo.png" width = 85 /> </center> <center> <img src = "https://d33wubrfki0l68.cloudfront.net/621a9c8c5d7b47c4b6d72e8f01f28d14310e8370/193fc/css/images/hex/dplyr.png" width = 85 /> </center> <center> <img src = "https://tidyr.tidyverse.org/logo.png" width = 85 /> </center> --- # Biblioteca `dplyr` <center> <img src = "img/dplyr.PNG" width = 700 /> </center> --- # Biblioteca `tidyr` <center> <img src = "https://www.fromthebottomoftheheap.net/assets/img/posts/original-dfs-tidy.png" width = 700 /> </center> --- class: inverse, center, middle # [*R para Ciencia de Datos*](https://es.r4ds.hadley.nz/) <center> <img src = "https://images-na.ssl-images-amazon.com/images/I/51U8H-yROqL._SX331_BO1,204,203,200_.jpg" width = 300 /> </center> --- class: inverse, center, middle # [*Libro Vivo de Ciencia de Datos*](https://librovivodecienciadedatos.ai/) <center> <img src = "https://librovivodecienciadedatos.ai/introduction/libro_vivo_de_ciencia_de_datos_cover.png" width = 300 /> </center> --- class: inverse, center, middle # <center> <img src = "img/gracias.gif" width = 600 /> </center>