IniziaInizia gratis

Renaming a column after count

The rename() verb is often useful for changing the name of a column that comes out of another verb, such as count(). In this exercise, you'll rename the default n column generated from count() to something more descriptive.

Questo esercizio fa parte del corso

Data Manipulation with dplyr

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

counties %>%
  # Count the number of counties in each state
  ___
Modifica ed esegui il codice