Skip to course content
Free R data course

R Foundations for Data Analysis

Module 04 Knowledge Check

5 questions. Pass mark 4 out of 5. Answer every question before checking the answer key below, then retry after reading the feedback.

1. A table with columns named Jan and Feb is untidy because…

2. Compared with nested calls, |> changes…

3. Omitting .groups = 'drop' after a summarise() risks…

4. In case_when(), putting >= 35 above >= 40 means…

5. Before joining, anyDuplicated() on the key protects against…

---

Answer Key and Explanations

Check these only after attempting every question.

1. B — those are values of a variable, not variables

Month cannot be filtered, grouped or joined while it lives in the header, and adding March means editing every piece of code.

2. C — the reading order, from inside-out to top-to-bottom

The pipe adds no capability. It puts the steps in the order they happen, which is most of what makes analysis code legible.

3. B — the next verb operating within groups unnoticed

The result stays grouped, so a following mutate() computes within each group. The numbers are wrong and nothing warns you.

4. B — values over 40 never reach the high band

It takes the first TRUE. The high band becomes unreachable, and the resulting column is entirely plausible and wrong.

5. B — rows being multiplied by a repeated key

If the right table has two rows for a key, every matching left row becomes two, and any sum afterwards is inflated.

Practical Check

Apply this module to your own work: complete the module activity for *Tidyverse Data Wrangling*, then write one sentence naming what your result shows and one naming what it does not.

Strong Answer Pattern

A strong answer names the task, the evidence used, the check performed, and the remaining limitation. It avoids "proved", "guaranteed", or "always" unless the evidence genuinely supports it.