Skip to contents

4D Array-like subsetting for LabeledVolumeSet

Usage

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

Arguments

x

A LabeledVolumeSet object.

i

Numeric indices for the 1st dimension (x).

j

Numeric indices for the 2nd dimension (y).

k

Numeric indices for the 3rd dimension (z).

l

Numeric indices for the 4th dimension (label).

...

Ignored.

drop

Logical, whether to drop singleton dimensions.

Value

An R array after subsetting, or a lower-dimensional array if drop=TRUE.