НачатьНачать бесплатно

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
  ___
  
Редактировать и запускать код