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

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