Skip to course content
Free R data course

R Foundations for Data Analysis

Module 03 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 data frame is a list with one constraint, namely that…

2. base_df$vis returning the visits column is an example of…

3. A numeric column arriving from read_csv() as character usually means…

4. The most important reason to name the sheet when reading a workbook is…

5. Saving a cleaned tibble as CSV rather than RDS costs you…

---

Answer Key and Explanations

Check these only after attempting every question.

1. B — all elements have the same length

Equal lengths are what make the elements line up as columns and give 'row 3' a meaning.

2. B — partial name matching in base data frames

It works until a column called visitors arrives, at which point the meaning changes silently. Tibbles return NULL instead.

3. B — a value in the column is not a number, such as a missing marker

That is evidence about the file. Naming the missing markers at the read keeps the decision visible.

4. B — the default is the first sheet, which is often a cover note

The default read succeeds and returns the wrong table, which is exactly how this fails in practice.

5. B — the factor levels and their order

CSV is text and has no types. Factor level order determines the order of bars in a chart, so losing it quietly changes your figures.

Practical Check

Apply this module to your own work: complete the module activity for *Data Frames, Tibbles, Import, and Inspection*, 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.