Skip to content
R for the Rest of Us Logo

R in 3 Months (Spring 2026)

Week 8 Project Assignment

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

For this week's project assignment, we want you to tidy your data using
the various functions you have learned in the last two weeks. You should do this in an R script file, saving your clean and tidy data as an RDS file. Essentially, we want you to do the same thing that David shows in
the Bring It All Together (Advanced Data Wrangling) lesson, but for your data.

Here are the steps for this week's assignment:

  1. Open your project from the Week 4 assignment.

  2. Open your R script and edit it to include a section called "Advanced Data Wrangling"
    ⚠️ If you are starting with a new dataset, feel free to create a new R script!

  3. Ask three new questions about your data, or expand on the questions you have asked before. Check for tidy principles (each columns is a variable, each cell is a single value, every row is an observation) and reformat your dataset as needed. Try to use at least two of the functions or combinations on the list below:

    • group_by() + summarise() + ungroup()

    • group_by() + mutate() + ungroup()

    • na_if() or replace_na()

    • One of the merging or binding datasets functions (left_join(), full_join(), bind_rows(), etc.)

  4. Identify repetitive tasks and create a function.

  5. Export the cleaned dataset as an RDS file into the data folder.

  6. Once you've completed your work, compress your project_assignment folder and upload it to the form below.

  7. If you have any specific questions, add those in the form below as well.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Course Content

144 Lessons