1. Learn
  2. /
  3. Courses
  4. /
  5. Inference for Categorical Data in R

Exercise

From tidy to table to tidy

The gss_party dataset that you created is in a tidy format to facilitate visualization and analysis. In this exercise, you'll untidy the data to create a contingency table to display counts. As a data analyst, it's commonplace to be given data in a contingency table, so you'll also practice tidying it back up.

Instructions 1/2

undefined XP
    1
    2

Using gss_party, create a contingency table() of natspac and party and save it to Obs for observed table.