BaşlayınÜcretsiz Başlayın

What are the top 5 destinations?

When analyzing data, it is often useful to know the key top/popular stats such as the most popular cities or the most famous restaurants etc. In this exercise, you will find the five most popular destinations (i.e., the five most popular end_stations).

Bu egzersiz

Data Manipulation with data.table in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Chain the following three data.table expressions:
    • Find the total number of trips to each end_station.
    • Arrange the total number of trips for each end_station in descending order.
    • Filter the top 5 rows.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Top five most popular destinations
top_5 <- batrips[, ___, by = ___][___][___]
top_5
Kodu Düzenle ve Çalıştır