vols-methods: Generic function to extract an ordered series of 3D volumes

Description Usage Arguments Examples

Description

Generic function to extract an ordered series of 3D volumes

Usage

1
2
3
4
5
6
7
vols(x, indices, ...)

## S4 method for signature 'NeuroVec,numeric'
vols(x, indices)

## S4 method for signature 'NeuroVec,missing'
vols(x)

Arguments

x

the object that supplies the volume data

indices

the subset of volumes to extract

...

additional arguments

Examples

1
2
3
4
5
6
vec <- read_vec(system.file("extdata", "global_mask_v5.nii", package="neuroim2"))
vs <- vols(vec)
length(vs) == dim(vec)[4]

vs <- vols(vec, indices=1:3)
length(vs) == 3

bbuchsbaum/neuroim2 documentation built on Nov. 14, 2019, 7:01 a.m.