A. The list-column data contains data frames, which cannot be unnested.
B. The unnest() function requires the cols argument to specify the list-column.
C. The tibble package is not loaded.
D. The unnest() function cannot unnest list-columns with numeric data.
Solution
Step 1: Check unnest() argument requirements
Modern unnest() requires specifying which columns to unnest using the cols = argument.
Step 2: Identify missing argument causing error
Omitting cols = data causes the function to fail because it doesn't know which list-column to expand.
Final Answer:
The unnest() function requires the cols argument to specify the list-column. -> Option B
Quick Check:
unnest() needs cols= argument [OK]
Hint: Always specify cols= when using unnest() [OK]
Common Mistakes:
Forgetting cols= argument
Assuming unnest() works without specifying columns
Confusing list-column content type
5. You have a data frame df with columns category, subcat, and value. You want to nest subcat and value by category, then filter out groups where the sum of value is less than 10, and finally unnest the filtered data. Which sequence of commands correctly achieves this?