series-methods: Extract one or more series from object and return as ROI...

Description Usage Arguments

Description

Extract one or more series from object and return as ROI object

Extract one or more series from object

#' @rdname series-methods #' @export setMethod("series", signature(x="NeuroVec", i="integer"), def=function(x, i, j, k) if (missing(j) && missing(k)) vdim <- dim(x)[1:3] mat <- arrayInd(i, vdim) apply(mat, 1, function(i) x[i[1], i[2], i[3],]) else x[i,j,k,] )

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
series_roi(x, i, ...)

series(x, i, ...)

## S4 method for signature 'NeuroHyperVec,matrix'
series(x, i)

## S4 method for signature 'NeuroVec,matrix'
series(x, i)

## S4 method for signature 'NeuroVec,matrix'
series_roi(x, i)

## S4 method for signature 'NeuroVec,ROICoords'
series(x, i)

## S4 method for signature 'NeuroVec,ROICoords'
series_roi(x, i)

## S4 method for signature 'NeuroVec,LogicalNeuroVol'
series(x, i)

## S4 method for signature 'NeuroVec,LogicalNeuroVol'
series_roi(x, i)

## S4 method for signature 'NeuroVec,integer'
series(x, i, j, k, drop = TRUE)

## S4 method for signature 'NeuroVec,numeric'
series(x, i, j, k)

## S4 method for signature 'NeuroVec,numeric'
series_roi(x, i, j, k)

## S4 method for signature 'SparseNeuroVec,ROICoords'
series(x, i)

## S4 method for signature 'SparseNeuroVec,matrix'
series(x, i)

## S4 method for signature 'SparseNeuroVec,numeric'
series(x, i, j, k)

## S4 method for signature 'SparseNeuroVec,integer'
series(x, i, j, k)

Arguments

x

the object

i

the series indices

...

additional arguments

j

index for 2nd dimension

k

index for 3rd dimension

drop

whether to drop dimension of length 1


bbuchsbaum/neuroim2 documentation built on Oct. 15, 2019, 2:55 p.m.