शुरू करेंमुफ़्त में शुरू करें

Finding the most popular names each year

You saw that you could use filter() and arrange() to find the most common names in one year. However, you could also use group_by() and slice_max() to find the most common name in every year.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Data Manipulation with dplyr

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Use group_by() and slice_max() to find the most common name for US babies in each year.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

babynames %>%
  # Find the most common name in each year
  ___
  
कोड संपादित करें और चलाएँ