Skip to content

Antoine-Lalechere/tidy-ds

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 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:

This is an overview of all pull-request functions in the usethis package:

How to work on each task:

  1. Initialize a pull request with pr_init("prefix_you") (you = your name).
  2. Copy (don’t rename) each lesson as prefix_you.Rmd (you = your name).
R
├── 01_skateboard_you.Rmd
├── 02_scooter_you.Rmd
├── 03_bicycle_you.Rmd
├── 04_motorbike_you.Rmd
└── 05_car_you.Rmd
  1. Submit a draft pull request with pr_push().
  2. Open prefix_you.Rmd and collapse all chunks with Alt+o (or Alt+Shift+o).
  3. Attempt each challenge in a new chunk or in chunk-1; check with chunk-2.
  4. Commit your work with a meaningful message.
  5. Update the pull-request with pr_sync().
  6. Finish your pull request with pr_finish() (e.g. because it got merged).
  7. Pause your pull request with pr_pause() (e.g. to initialize a new one).

About

Tidy data-science workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published