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

Combining i, j, and by (II)

As you did in the last chapter, you will combine the i, j, and by arguments, but this time modify the existing data.table by reference in j.

Bu egzersiz

Data Manipulation with data.table in R

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

Egzersiz talimatları

For all rows where duration is greater than 600, group batrips by start_station and end_station to add a new column (mean_duration) by reference which calculates the mean duration of all trips.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Add the mean_duration column
___
Kodu Düzenle ve Çalıştır