iso_apply: sensible row- or column- wise operations against a...

Description Usage Arguments Details Value

View source: R/iso_apply.R

Description

For good performance, entire chunks should be loaded; consequently, if MARGIN == 1 (rows), by should be a multiple of chunkdim(X)1, and if MARGIN == 2 (columns), by should be a multiple of chunkdim(X)2. (There is a check included for this, but the principle is worth noting.)

Usage

1
iso_apply(X, MARGIN, FUN, by = NULL)

Arguments

X

a DelayedArray (e.g. a DelayedMatrix backed by HDF5Array)

MARGIN

apply across rows (1) or columns (2), as in base::apply

FUN

the function to apply to each row or column (see above)

by

the number of rows or columns to load at one time

Details

Remember to setRealizationBackend("HDF5Array") or TileDBArray or whatever.

Value

1
   a new DelayedArray (presumably of the same dimensions as X)

trichelab/enmity documentation built on Sept. 8, 2020, 8:32 p.m.