Skip to content

fiona511/tidy-ds

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tidy-ds

Tidy data-science: An online coding workshop for 2DII
August 26-27, 1-5pm - Berlin time

This workshop will cover the most useful bits of the tidyverse: The main features of ggplot2, tidyr, dplyr, and purrr. It will also help you practice other tools that are crucial for data science but won't be the focus of any specific lesson: Rmarkdown, RStudio, Git, and GitHub.

General objectives

  • Overview the main features of ggplot2, tidyr, dplyr, and purrr.
  • Solve iteration problems with purrr and dplyr instead of for() loops.
  • Practice working with Rmarkdown, RStudio, Git, and GitHub.

Before the workshop setup usethis and the tidy-ds repo on rstudio.cloud

Please do this before the workshop to ensure we all have the same R environment; this avoids problems and saves time. You may ask for help on the #tidy-ds channel on Slack.

  1. Setup usethis on rstudio.cloud following this 16' video.

  2. Fork and clone the tidy-ds repository into the home directory of the rstudio.cloud project you setup in (1):

create_from_github("2DegreesInvesting/tidy-ds", destdir = "~", fork = TRUE)
  1. Install the tidyverse packages and friends:
install.packages(c("tidyverse", "here", "vroom", "shiny"))

Links

How to work with usethis:

  • Use usethis with library(usethis) or devtools::use_devtools().
  • Use pr_init() to initialize work on a new pull-request branch.
  • Use pr_pause() to pause work on a pull-request branch (to start a new one).
  • Use RStudio's branch menu (Git pane) to switch between pull-request branches.
  • Use pr_sync() to update a pull-request branch against upstream.

How to work on each task:

  1. Initialize a pull request with pr_init("prefix_you") (you is your name).
  2. Copy (don't rename) prefix_you.Rmd (a new file with your name).
  3. Submit a draft pull request with pr_push().
  4. Open prefix_you.Rmd and collapse all chunks with Alt+o (or Alt+Shift+o).
  5. Attempt each challenge in a new chunk or in chunk-1; check with chunk-2.
  6. Commit your work with a meaningful message.
  7. Update the pull-request with pr_sync().

About

Tidy data-science workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published