Get startedGet started for free

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().

This exercise is part of the course

Data Manipulation with dplyr

View Course

Exercise instructions

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

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

counties %>%
  # Select state, county, and poverty as poverty_rate
  ___
Edit and Run Code