I\'d like to print all the columns of a data table dt except one of them named V3 but don\'t want to refer to it by number but by name. This is the
dt
V3
From version 1.12.0 onwards, it is also possible to select columns using regular expressions on their names:
iris_DT <- as.data.table(iris) iris_DT[, .SD, .SDcols = patterns(".e.al")]