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

Filtering with %between% and %chin%

Two other functions that can come in handy when filtering rows are %between% and %chin%.

  • %between% works only on numeric columns and can be used to filter values in the closed interval [val1, val2].
  • %chin% works only on character columns and is an efficient version of %in%. You can use it to look for specific strings in a vector.

Bu egzersiz

Data Manipulation with data.table in R

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Filter all rows where duration is between [5000, 6000]
duration_5k_6k <- batrips[___]
duration_5k_6k
Kodu Düzenle ve Çalıştır