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

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
  ___
कोड संपादित करें और चलाएँ