Create a new instance of the ColumnReader class for reading column-oriented data.
Usage
ColumnReader(nrow, ncol, reader)
Arguments
- nrow
Integer specifying number of rows in data
- ncol
Integer specifying number of columns in data
- reader
Function that takes column indices and returns matrix
Examples
if (FALSE) { # \dontrun{
reader_func <- function(cols) {
matrix(rnorm(100 * length(cols)), 100, length(cols))
}
col_reader <- ColumnReader(nrow = 100L, ncol = 10L, reader = reader_func)
} # }