Skip to content

nt246/NTRES6940-data-science

Repository files navigation

NTRES 6940, Lec 001

Collaborative and Reproducible Data Science in R

Cornell University, Fall 2020


Course website: https://nt246.github.io/NTRES6940-data-science/


Meeting times - all class activities are online

Mondays and Wednesdays 2:55pm - 4:10pm (September 14 - November 11, 2020)
OPTIONAL: "Hacky hour" (meetup to work on problem sets or your own projects) Fridays 12:20-2:15pm


Instructor

Assistant Professor Nina Overgaard Therkildsen (nt246@cornell.edu)
Office hours: By appointment


TA

Maria Akopyan (ma2256@cornell.edu)
Office hours: TBD and by appointment


Grading

S/U (2 credits)


Course description

As datasets grow larger and more complex across all areas of science, computational skills are increasingly in high demand. This course introduces a series of practical tools that enable researchers to spend less time wrestling with software or repeating error-prone manual data processing and more time getting research done in efficient and transparent ways that facilitate collaboration and reproducibility. We will work in R/RStudio, primarily with the tidyverse packages and with Git and GitHub integration. Topics covered include 1) tidy data formatting, 2) rearrangement, filtering, exploration, and visualization of complex datasets, 3) basic programming for building and automating custom tools, 4) tracking the history of file changes (version control) with Git and GitHub, 5) strategies for effective collaboration on data processing pipelines, and 6) using R Markdown to combine text, equations, code, tables, and figures into reports, websites, and presentations. The course emphasizes practical skill development and will be structured around hands-on (the keyboard) learning.


Learning outcomes

By the end of this course, students will be able to:

  • Describe strategies for ensuring that their data analysis is reproducible
  • Demonstrate best practices for coding and project-oriented workflows in RStudio
  • Import and clean messy data files using a variety of packages and functions in R
  • Subset, reorganize, and merge diverse datasets in R
  • Effectively explore and visualize patterns in complex datasets with ggplot in R
  • Write simple functions/programs and data analysis pipelines in R
  • Automate repeated analysis tasks in R
  • Track the history of file changes (version control) and collaborate effectively on scripts with others with Git and GitHub
  • Use R Markdown to combine text, equations, code, tables, and figures into reports, websites, and presentations

Prerequisites

A basic working knowledge of R will be helpful, but no prior experience with the tidyverse packages or with Git, GitHub, or R Markdown is assumed. If you have never worked in R before, we recommend working through one or more of the following tutorials before the course:


Course format

The two weekly lectures will introduce new concepts and provide opportunities to practice through hands-on exercises. To participate effectively, you must have completed the assigned readings prior to class. Each week, we will assign a problem set that applies the concepts covered in class in a new context to reinforce your learning. We offer an optional Friday afternoon "hacky hour" session for working on these problem sets in groups and with TA support. The problem sets are due the following week at 10pm.


Evaluation

It takes practice to acquire and internalize data science skills, and what you get out of this course will be proportional to the effort you put in. Practice as much as you can. To pass, students are expected to attend all lectures, participate actively during class, and submit at least 6 of the 7 problem sets with demonstrated effort to complete all questions. If you are unable to make a lecture or can not meet a problem set deadline, please email the instructor beforehand.

Course materials

All assigned readings are freely available online and will be linked to from the course website. We will draw from a variety of sources, primarily Grolemund and Wickham's R For Data Science and the STAT545 course developed by Jenny Bryan.

All students will need to bring a laptop to each session. Students who do not have their own laptop can arrange to borrow one from the Mann Library.

Please follow the instructions here to install the software we will need prior to the first class.


Code of conduct

We are dedicated to providing a welcoming and supportive environment for everyone, regardless of background, identity and prior experience level. Everyone in this course will be coming from a different place with different experiences and expectations. We will not tolerate any form of language or behavior used to exclude, intimidate, or cause discomfort. This applies to all course participants (instructor, students, guests). In order to foster a positive and professional learning environment, we encourage the following kinds of behaviors:

  • Use welcoming and inclusive language
  • Be respectful of different viewpoints and experiences
  • Gracefully accept constructive criticism
  • Show courtesy and respect towards others
  • Help each other - you may well learn something or reinforce your own skills in the process

Accommodations for students with disabilities

In compliance with the Cornell University policy and equal access laws, we are available to discuss appropriate academic accommodations that may be required for student with disabilities. Requests for academic accommodations are to be made during the first two weeks of the course, except for unusual circumstances, so arrangements can be made. Students are encouraged to register with Student Disability Services to verify their eligibility for appropriate accommodations.


Tentative schedule (subject to adjustment)

Class# Date Topic Assignments
1 Mon 9/14 Intro to the course and R/RStudio
2 Wed 9/16 Markdown and GitHub
3 Mon 9/21 The Git workflow (version control)
4 Wed 9/23 Collaborating with GitHub Part 1 Assignment 1 due
5 Mon 9/28 Collaborating with GitHub Part 2
6 Wed 9/30 Plotting with ggplot part 1
7 Mon 10/5 Data wrangling part 1 (dplyr::filter, mutate, select, arrange) Assignment 2 due
8 Wed 10/7 Data wrangling part 2 (dplyr::summarize, group_by)
9 Mon 10/12 Plotting with ggplot part 2 + good coding practices Assignment 3 due
   Wed 10/14 NO CLASS
10 Mon 10/19 Tidy data (what is tidy data and how to handle untidy data) and file input/output Assignment 4 due
11 Wed 10/21 Good coding practices, debugging strategies, and getting help (Guest lecture by Erika Mudrak)
12 Mon 10/26 Relational data (join functions) Assignment 5 due
13 Wed 10/28 Data import, export, and types
14 Mon 11/2 Iteration (for loops) and conditional execution Assignment 6 due
15 Wed 11/4 Functions
16 Mon 11/9 Factors in R Assignment 7 due
17 Wed 11/11 Student presentations, wrapping up and looking ahead

About

Collaborative and Reproducible Data Science in R

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages