Skip to contents

Allows h5vol[i, j, k] where each of i,j,k may be missing. Missing arguments default to the entire range in that dimension. Zero-length arguments immediately yield an empty array of the correct shape.

Usage

# S4 method for class 'H5NeuroVol,ANY,ANY,ANY'
x[i, j, k, ..., drop = TRUE]

Arguments

x

An H5NeuroVol instance

i, j, k

Numeric (or integer) index vectors for each dimension. If missing, we take the full range in that dimension.

...

Unused

drop

Logical: whether to drop dimensions of size 1. Default TRUE.

Value

A numeric array of shape c(length(i), length(j), length(k)), or fewer dims if drop=TRUE.