Homework 05

ImportantHW Instructions

Before starting, review the HW Instructions ⭐ for details on submission procedure.

Main Goals

The main goals of this homework assignment are:

  • Understand functions in R
  • Understand Scope
  • Understand abstracting code into functions (don’t repeat yourself)
  • Understand conditional statements, if_else and case_when

Non-TidyTuesday Section

This section of this homework consists of 2 challenges:

  • Challenge 1 involves doing wrangling but trying to write code to work in more general circumstances. See the first NTT Template file for details and expectations.
  • Challenge 2 involves writing functions to do general wrangling tasks. See the second NTT Template file for more details and expectations.

TidyTuesday Section (optional)

ImportantInstructions

You can count work on this week’s TidyTuesday toward the exceptional work required for an A in the Homework component.

Explore the week’s TidyTuesday challenge. Develop a research question, then answer it through a short data story with effective visualization(s). Provide sufficient background for readers to grasp your narrative.