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

Deselecting specific columns

You can also drop or deselect columns by prepending the character vector of column names with the - or ! operators. For e.g., dt[, -c("col1", "col2")] or dt[, !c("col1", "col2")] would both return all columns except col1 and col2.

Bu egzersiz

Data Manipulation with data.table in R

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

Egzersiz talimatları

Deselect the columns start_terminal and end_terminal from batrips.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Deselect start_terminal and end_terminal columns
drop_terminal_cols <- ___
drop_terminal_cols
Kodu Düzenle ve Çalıştır