ComenzarEmpieza gratis

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.

Este ejercicio forma parte del curso

Programming with dplyr

Ver curso

Instrucciones del ejercicio

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

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

imf_data %>% 
  count(
    # Count over character class columns
    ___(
    ___(___)
  	),
    # Arrange the results by descending count
    ___)
Editar y ejecutar código