eachSeries: Generic functions to apply a function to each series of a 4D image
That is, if the 4th dimension is 'time' each series is a 1D time series.
Description
Generic functions to apply a function to each series of a 4D image
That is, if the 4th dimension is 'time' each series is a 1D time series.
Usage
eachSeries(x, FUN, withIndex, ...)
"eachSeries"(x, FUN, withIndex = FALSE, ...)
"eachSeries"(x, FUN, withIndex = FALSE, ...)
Arguments
x
a four dimensional image
FUN
a function taking one or two arguments (depending on the value of withIndex
withIndex
whether the index of the series is supplied as the second argument to the function
...
additional arguments
Details
when x is a SparseBrainVectoreachSeries only iterates over nonzero series.