drop-NeuroVec-method: drop

drop,NeuroVec-methodR Documentation

drop

Description

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 signature 'NeuroVec'
drop(x)

## S4 method for signature '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.


bbuchsbaum/neuroim2 documentation built on Jan. 2, 2025, 3:38 p.m.