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.
This exercise is part of the course
Data Manipulation with dplyr
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
counties %>%
# Count the number of counties in each state
___