Tidy the simple tibble below. Do you need to spread or gather it? What are the variables?
Thank you for writing/maintaining r4ds! Great resource.
I delivered this example in a lecture introducing tidy data, and the solution to have three variables doesn't make sense to me. Why is this not only two variables (sex and pregnant)? Sure, I could argue that count is a variable on this data, but it doesn't seem as natural.