processByChunks {cTRAP} | R Documentation

## Process data by chunks

### Description

Process data by chunks

### Usage

    processByChunks(
      data,
      FUN,
      num,
      ...,
      threads = 1,
      chunkGiB = 1,
      verbose = FALSE
    )

### Arguments

`data` | Character containing a HDF5 file path (allowing partial loading) or data matrix (processed as single chunk if data matrix)
`FUN` | Function: function to run for each chunk
`num` | Numeric: numbers of methods to run per chunk
`...` | Arguments passed to `FUN`
`threads` | Integer: number of parallel threads
`chunkGiB` | Numeric: size (in gibibytes) of chunks to load `reference` file; only if argument `reference` is a file path
`verbose` | Boolean: print additional details?

### Value

Results of running `FUN`

### Note

All rows from file are currently loaded when processing chunks.

[Package cTRAP version 1.12.0 Index]