Skip to contents

This function drops the last dimension of a NeuroVec object if it is of length 1.

This function drops the last dimension of a NeuroVec object if it is of length 1.

Usage

# S4 method for class 'NeuroVec'
drop(x)

# S4 method for class 'NeuroVec'
drop(x)

Arguments

x

The NeuroVec object.

Value

If the last dimension of the NeuroVec object is of length 1, a DenseNeuroVol object is returned. Otherwise, the original NeuroVec object is returned.

If the last dimension of the NeuroVec object is of length 1, a DenseNeuroVol object is returned. Otherwise, the original NeuroVec object is returned.