Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Factors and how to create them
Working with factors
Modifying factor variables
Summary
21. Exercise 2

Instruction

What are the most popular car brands?

Exercise

Count the number of car brands in our data. Display only the four most popular car brands. Collapse all other brands to one category: Other.

Stuck? Here's a hint!

Type:

fct_count(fct_lump(cars$brand, n = 4))