+ - 0:00:00
Notes for current slide
Notes for next slide

1

R and RStudio

Tidy Data Science with the Tidyverse and Tidymodels

W. Jake Thompson

https://tidyds-2021.wjakethompson.com · https://bit.ly/tidyds-2021

Tidy Data Science with the Tidyverse and Tidymodels is licensed under a Creative Commons Attribution 4.0 International License.

Data Science

Picture from Joshua Earle on Unsplash

R: A computer language for scientists

Picture from Eric Muhr on Unsplash

R packages

R packages

R packages

tidyverse: Ecosystem to unify data science tasks

Using packages

Step 1

install.packages("foo")

Downloads files to computer

1 x per computer

Step 2

library("foo")

Loads package

1 x per R session

install.packages("tidyverse")

does the equivalent of

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")
...

install.packages("tidyverse")

does the equivalent of

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")
...
library("tidyverse")

does the equivalent of

library("ggplot2")
library("tibble")
library("tidyr")
library("readr")
library("purrr")
library("dplyr")
library("stringr")
library("forcats")

(Applied) Data Science

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...

Your turn 1

Download course materials

From R

usethis::use_course(bit.ly/tidyds-2021-materials)

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

R and RStudio

Tidy Data Science with the Tidyverse and Tidymodels

W. Jake Thompson

https://tidyds-2021.wjakethompson.com · https://bit.ly/tidyds-2021

Tidy Data Science with the Tidyverse and Tidymodels is licensed under a Creative Commons Attribution 4.0 International License.

Data Science

Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
sToggle scribble toolbox
Esc Back to slideshow