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

Combining count() with across()

The count() function also works with across() to provide the number of rows matching each combination of the variables specified. You can, thus, get how many rows correspond to different variable combinations in the imf_data with this pairing.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Programming with dplyr

पाठ्यक्रम देखें

अभ्यास निर्देश

  • count() across character class columns.
  • Arrange the count tibble with count decreasing.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

imf_data %>% 
  count(
    # Count over character class columns
    ___(
    ___(___)
  	),
    # Arrange the results by descending count
    ___)
कोड संपादित करें और चलाएँ