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

Select helpers

In the video you learned about the select helper starts_with(). Another select helper is ends_with(), which finds the columns that end with a particular string.

Это упражнение является частью курса

Data Manipulation with dplyr

Посмотреть курс

Инструкции к упражнению

  • Select the columns state, county, population, and all those that end with work.
  • Filter just for the counties where at least 50% of the population is engaged in public work.

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

counties %>%
  # Select the state, county, population, and those ending with "work"
  ___
  # Filter for counties that have at least 50% of people engaged in public work
  ___
Редактировать и запускать код