extract-methods {dti} | R Documentation |
The methods extract and/or compute specified statistics from object of class "dtiData"
, "dtiTensor"
, and "dtiIndices"
. This can be restricted to a subset of voxel.
## S4 method for signature 'dtiData': extract(x, what="data", xind, yind, zind) ## S4 method for signature 'dtiTensor': extract(x, what="tensor", xind, yind, zind) ## S4 method for signature 'dtiIndices': extract(x, what=c("fa","andir"), xind, yind, zind) ## S4 method for signature 'dtiData': x[i, j, k, drop=FALSE] ## S4 method for signature 'dtiTensor': x[i, j, k, drop=FALSE] ## S4 method for signature 'dtiIndices': x[i, j, k, drop=FALSE]
x |
Object of class dti |
i |
vector of x-coordinates, defaults to whole range. |
j |
vector of y-coordinates, defaults to whole range. |
k |
vector of z-coordinates, defaults to whole range. |
xind |
vector of x-coordinates, defaults to whole range. |
yind |
vector of y-coordinates, defaults to whole range. |
zind |
vector of z-coordinates, defaults to whole range. |
what |
Statistic to extract. See Methods Section for details. |
drop |
unused. |
For function extract
a list with components carrying the names of the options specified in
argument what
. For indexing function, the cutted object.
"["
does what it is expected to do: it extracts parts of the object specified by i
, j
, and k
.
extract
. Generic funtion for "["
returns an object of same class with data clipped to the indices specified in arguments i
, j
and k
.i
, j
and k
.what
. Information is extracted for voxel within the cube defined by xind
, yind
, and zind
. what
. Information is extracted for voxel within the cube defined by arguments xind
, yind
and zind
.
Karsten Tabelow tabelow@wias-berlin.de
J"org Polzehl polzehl@wias-berlin.de
dtiData
,
dtiTensor
,
dtiIndices