1. Learn
  2. /
  3. Courses
  4. /
  5. Data Science R Basics

Exercise

Tables

The function table takes a vector as input and returns the frequency of each unique element in the vector.

Instructions

100 XP

We will use the table function to answer this question.

  • Use the table function in one line of code to create a table showing the number of states per region.