ColumnReader: Create Column Reader Object

View source: R/binary_io.R

ColumnReaderR Documentation

Create Column Reader Object

Description

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

Value

An object of class ColumnReader

Examples

## Not run: 
reader_func <- function(cols) {
  matrix(rnorm(100 * length(cols)), 100, length(cols))
}
col_reader <- ColumnReader(nrow = 100L, ncol = 10L, reader = reader_func)

## End(Not run)

bbuchsbaum/neuroim2 documentation built on Jan. 2, 2025, 3:38 p.m.