# NOT RUN {
data = as.data.table(iris)
data$id = seq_len(nrow(iris))
b = DataBackendDataTable$new(data = data, primary_key = "id")
print(b)
b$head()
b$data(rows = 100:101, cols = "Species")
b$nrow
head(b$rownames)
b$ncol
b$colnames
# alternative construction
as_data_backend(iris)
# }
Run the code above in your browser using DataCamp Workspace