Escolar Documentos
Profissional Documentos
Cultura Documentos
library("data.table")
# Print the second and third row to the console, but do not use any comma at
all
DT[2:3]
# Print the column names of DT, and number of rows and number of columns
colnames(DT)
dim(DT)
# Select row 2 twice and row 3, returning a data.table with three rows where
row 2 is a duplicate of row 1.
DT[c(2,2,3)]