data = data.table::data.table(id = 1:5, x = runif(5),
y = sample(letters[1:3], 5, replace = TRUE))
b = DataBackendDataTable$new(data, primary_key = "id")
print(b)
b$head(2)
b$data(rows = 1:2, cols = "x")
b$distinct(rows = b$rownames, "y")
b$missings(rows = b$rownames, cols = names(data))
Run the code above in your browser using DataLab