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

Meet the Toolkit

Bora Jin

1 / 11

Today's Goal

  • Understand reproducibility and version control
  • Comfortably navigate RStudio fundamentals
  • Be able to define common terms including: data frame, function, variable, package
  • Interact with Git from RStudio (committing and pushing)
  • Use a few functions, including: glimpse(), group_by(), summarize(), and filter()
  • Understand the pipe operator %>%
  • Create a reproducible report via today's application exercise using R Markdown
3 / 11

Quiz

Q - What is a reproducible data analysis?

4 / 11

Quiz

Q - What is a reproducible data analysis?

Near-term goals:

  • Exact/similar tables and figures can be generated from the code and data
  • The code performs an intended task
  • Purpose of the analysis is clear

Long-term goals:

  • The code can be used for other data
  • The code can be extended to do other things
4 / 11

Quiz

Q - What is difference between R vs. RStudio?

5 / 11

Quiz

Q - What is difference between R vs. RStudio?

R:

  • Open-source statistical programming language
  • Easily extensible with packages, collections of reproducible R code

RStudio:

  • Convenient interface for R called Integrated development environment (IDE)
5 / 11

Quiz

Q - How do I install a package called unvotes and load it?

6 / 11

Quiz

Q - How do I install a package called unvotes and load it?

install.packages("unvotes")
library(unvotes)
6 / 11

Quiz

Q - How do I install a package called unvotes and load it?

install.packages("unvotes")
library(unvotes)

Q - How do I see a help page of data un_votes?

6 / 11

Quiz

Q - How do I install a package called unvotes and load it?

install.packages("unvotes")
library(unvotes)

Q - How do I see a help page of data un_votes?

?un_votes
6 / 11

Quiz

Q - How do I install a package called unvotes and load it?

install.packages("unvotes")
library(unvotes)

Q - How do I see a help page of data un_votes?

?un_votes

Q - What am I doing with un_votes$country?

6 / 11

Quiz

Q - How do I install a package called unvotes and load it?

install.packages("unvotes")
library(unvotes)

Q - How do I see a help page of data un_votes?

?un_votes

Q - What am I doing with un_votes$country?

Accessing a column country in the data un_vote

6 / 11

Quiz

Q - What can you do with R Markdown?

7 / 11

Quiz

Q - What can you do with R Markdown?

  • Create fully reproducible reports with code for analysis and text for narrative
  • Every assignment as an R Markdown document (with .Rmd extension)
  • R Markdown document should be complete in itself. The environment of your R Markdown document is separate from the R Console!
7 / 11

Quiz

Q - What can you do with R Markdown?

  • Create fully reproducible reports with code for analysis and text for narrative
  • Every assignment as an R Markdown document (with .Rmd extension)
  • R Markdown document should be complete in itself. The environment of your R Markdown document is separate from the R Console!

Q - How do I create a code chunk in an R Markdowm document?

7 / 11

Quiz

Q - What can you do with R Markdown?

  • Create fully reproducible reports with code for analysis and text for narrative
  • Every assignment as an R Markdown document (with .Rmd extension)
  • R Markdown document should be complete in itself. The environment of your R Markdown document is separate from the R Console!

Q - How do I create a code chunk in an R Markdowm document?

Three backticks

7 / 11

Quiz

Q - What is difference between Git vs. GitHub?

8 / 11

Quiz

Q - What is difference between Git vs. GitHub?

  • Git: Version control system
  • GitHub: Home for Git-based projects on the internet
8 / 11

Quiz

Q - What is difference between Git vs. GitHub?

  • Git: Version control system
  • GitHub: Home for Git-based projects on the internet

Q - What is version control?

8 / 11

Quiz

Q - What is difference between Git vs. GitHub?

  • Git: Version control system
  • GitHub: Home for Git-based projects on the internet

Q - What is version control?

Tracking changes (potentially with human readable messages)

8 / 11

Quiz

Q - What is difference between Git vs. GitHub?

  • Git: Version control system
  • GitHub: Home for Git-based projects on the internet

Q - What is version control?

Tracking changes (potentially with human readable messages)

Q - Why is it important?

8 / 11

Quiz

Q - What is difference between Git vs. GitHub?

  • Git: Version control system
  • GitHub: Home for Git-based projects on the internet

Q - What is version control?

Tracking changes (potentially with human readable messages)

Q - Why is it important?

  • Otherwise you lose track of your work and become clueless where to go back when you need to fix things! e.g. final.docx, final2.docx, final_final.docx, final_final_XXXX.docx, ...
  • At each version, important to leave an informative tag
8 / 11

Questions?

9 / 11

Let's Practice Together!

Go to AE 02: Part 1, Tour of RStudio + GitHub

10 / 11

Bulletin

11 / 11
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
Esc Back to slideshow