Assignment 1

Due: Monday, May 12 at 11 AM ET to be submitted via Crowdmark

Note: Your submitted solution must be unique and written in your own words; if you collaborate with other students, external resources, and/or use AI tools, this must be clearly acknowledged in your submission.

Part 1

This assignment covers material from Chapters 1-8 of R4DS / Chapters 1-10 P4DS. Please complete the following exercises from ONE of those textbooks for the assigned chapters.

R4DS P4DS
1.2.5 Q4 2.2.5 Q4
1.2.5 Q10 2.2.5 Q9
1.4.3 Q2 2.4.3 Q2
1.5.5 Q6 2.5.5 Q2
1.5.5 Q7 2.5.5 Q7
2.6 Q4 3.6 Q2
3.2.5 Q6 4.3.4 Q5
3.3.5 Q5 4.5.1 Q6
3.5.7 Q1 4.6.4 Q1
7.2.4 Q1 8.2.3 Q1

Part 2

Using a sports dataset from a library/package of your choice, complete the following:

  1. Make a scatter plot of 2 continuous variables and describe their relationship. Then add additional variables as aesthetics to either size (numeric) or shape (categorical)
  2. Use a different geom to visualize the relationship between 1 continuous and 1 categorical variable in your dataset
  3. Make a histogram to visualize the distribution of a continuous variable in your dataset
  4. Create a data manipulation pipeline that selects a subset of columns, performs an intermediate calculation, filters the rows, and sorts the resulting output. What question are you trying to answer with it? in relation to your dataset?
  5. Use a group_by and aggregation (i.e. summarise) to calculate a summary statistic of your choice for your dataset. What does this mean in relation to your data?
  6. Write code to read and write your data set using two types of delimiters.