MulaiMulai sekarang secara 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.

Latihan ini adalah bagian dari kursus

Data Manipulation with dplyr

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

counties %>%
  # Count the number of counties in each state
  ___
Edit dan Jalankan Kode