powered by
Create a new instance of the ColumnReader class for reading column-oriented data.
ColumnReader(nrow, ncol, reader)
An object of class ColumnReader
Integer specifying number of rows in data
Integer specifying number of columns in data
Function that takes column indices and returns matrix
reader_func <- function(cols) { matrix(rnorm(100 * length(cols)), 100, length(cols)) } col_reader <- ColumnReader(nrow = 100L, ncol = 10L, reader = reader_func)
Run the code above in your browser using DataLab