class: title-slide, center <span class="fa-stack fa-4x"> <i class="fa fa-circle fa-stack-2x" style="color: #ffffff;"></i> <strong class="fa-stack-1x" style="color:#009FB7;">1</strong> </span> # R and RStudio ## Tidy Data Science with the Tidyverse and Tidymodels ### W. Jake Thompson #### [https://tidyds-2021.wjakethompson.com](https://tidyds-2021.wjakethompson.com) · [https://bit.ly/tidyds-2021](https://bit.ly/tidyds-2021) .footer-license[*Tidy Data Science with the Tidyverse and Tidymodels* is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).] --- background-image: url(images/r-rstudio/ds-flow-truncated.png) background-position: 50% 70% background-size: 60% # Data Science --- background-image: url(images/r-rstudio/ds-flow-full.png) background-position: middle center background-size: 95% --- background-image: url(images/r-rstudio/ds-flow-full-r.png) background-position: middle center background-size: 95% --- background-image: url(images/r-rstudio/mountain-struggle.jpg) background-position: center middle background-size: 100% class: bottom left .footnote[Picture from Joshua Earle on [Unsplash](https://unsplash.com/photos/-87JyMb9ZfU)] --- background-image: url(images/r-rstudio/brain-to-machine.png) background-position: 50% 60% background-size: 90% # R: A computer language for scientists --- background-image: url(images/r-rstudio/pit-success.jpg) background-position: center middle background-size: 100% class: bottom left .footnote[Picture from Eric Muhr on [Unsplash](https://unsplash.com/photos/8HyrGTYPQ68)] --- background-image: url(images/r-rstudio/base.png) background-position: 75px 140px background-size: 20% ## R packages --- background-image: url(images/r-rstudio/base-r.png) background-position: 75px 140px background-size: 20% ## R packages --- background-image: url(images/r-rstudio/r-pkgs.png) background-position: 75px 140px background-size: 93% ## R packages --- background-image: url(images/r-rstudio/tidy-brain-machine.png) background-position: 50% 60% background-size: 90% # tidyverse: Ecosystem to unify data science tasks --- background-image: url(images/r-rstudio/hill-striving.jpg) background-position: center middle background-size: 100% class: bottom left .footnote[From [Data Rectangling, by Jenny Bryan](https://rstudio.com/resources/rstudioconf-2018/data-rectangling/)] --- class: center # Using packages .pull-left[ ### Step 1 ```r install.packages("foo") ``` Downloads files to computer ## 1 x per computer ] .pull-right[ ### Step 2 ```r library("foo") ``` Loads package ## 1 x per R session ] --- .pull-left[ ```r install.packages("tidyverse") ``` does the equivalent of .small[ ```r install.packages("ggplot2") install.packages("tibble") install.packages("tidyr") install.packages("readr") install.packages("purrr") install.packages("dplyr") install.packages("stringr") install.packages("forcats") install.packages("dbplyr") install.packages("haven") install.packages("hms") install.packages("httr") install.packages("jsonlite") install.packages("lubridate") install.packages("magrittr") install.packages("modelr") install.packages("readxl") install.packages("reprex") install.packages("rlang") ... ``` ] ] .pull-right[ <img src="images/r-rstudio/tidyverse-network-1.png" width="504" /> ] --- .pull-left[ ```r install.packages("tidyverse") ``` does the equivalent of .small[ ```r * install.packages("ggplot2") * install.packages("tibble") * install.packages("tidyr") * install.packages("readr") * install.packages("purrr") * install.packages("dplyr") * install.packages("stringr") * install.packages("forcats") install.packages("dbplyr") install.packages("haven") install.packages("hms") install.packages("httr") install.packages("jsonlite") install.packages("lubridate") install.packages("magrittr") install.packages("modelr") install.packages("readxl") install.packages("reprex") install.packages("rlang") ... ``` ] ] .pull-right[ ```r library("tidyverse") ``` does the equivalent of .small[ ```r library("ggplot2") library("tibble") library("tidyr") library("readr") library("purrr") library("dplyr") library("stringr") library("forcats") ``` ] ] --- background-image: url(images/r-rstudio/applied-ds.png) background-position: center 60% background-size: 85% # .nobold[(Applied)] Data Science --- <div class="hex-book"> <a href="https://rstudio.com"> <img class="hex" src="images/hex/RStudio.png"> </a> </div> --- # RStudio - Software program - IDE: Integrated Development Environment - Write R code - Run R code - Analyze data with R - Text editor, version control, debugging tools, and more... --- class: your-turn # Your turn 1 Download course materials .pull-left[ **From R** .smallish[ ```r usethis::use_course(bit.ly/tidyds-2021-materials) ``` ] ] .pull-right[ **From the web** https://github.com/wjakethompson/tidyds-2021 Green "Code" button -> Download ZIP ] Open `tidyds-2021.Rproj` Navigate to `materials/exercises/01-getting-started.Rmd`
05
:
00
--- background-image: url(images/r-rstudio/rstudio-01.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-02.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-03.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-04.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-05.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-06.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-07.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-08.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-09.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-10.png) background-position: center middle background-size: 90% --- background-image: url(images/r-rstudio/rstudio-11.png) background-position: center middle background-size: 90% --- class: title-slide, center # R and RStudio <img src="images/hex/RStudio.png" width="20%" /> ## Tidy Data Science with the Tidyverse and Tidymodels ### W. Jake Thompson #### [https://tidyds-2021.wjakethompson.com](https://tidyds-2021.wjakethompson.com) · [https://bit.ly/tidyds-2021](https://bit.ly/tidyds-2021) .footer-license[*Tidy Data Science with the Tidyverse and Tidymodels* is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).]