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

Renaming a column as part of a select

rename() isn't the only way you can choose a new name for a column; you can also choose a name as part of a select().

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

Data Manipulation with dplyr

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

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

  • Select the columns state, county, and poverty from the counties dataset; in the same step, rename the poverty column to poverty_rate.

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

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

counties %>%
  # Select state, county, and poverty as poverty_rate
  ___
Редактировать и запускать код