Description Usage Arguments Details See Also Examples
Subsetting operators for vector-like objects.
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 | ## S3 method for class 'ObjectArray'
v[...]
## S3 method for class 'ObjectArray'
v[[...]]
## S3 replacement method for class 'ObjectArray'
v[[...]] <- value
## S3 method for class 'NestMatrix'
v[[i, j, ..., drop=TRUE, zero=TRUE]]
## S3 replacement method for class 'NestMatrix'
v[[i, j]] <- value
## S3 method for class 'PartMatrix'
v[[i, j, ..., drop=TRUE]]
## S3 replacement method for class 'PartMatrix'
v[[i, j]] <- value
## S3 method for class 'GeomArray'
v[...]
## S3 method for class 'ImageArray'
v[...]
## S3 method for class 'MatrixArray'
v[...]
## S3 replacement method for class 'GeomArray'
v[[...]] <- value
#for SectMatrix
getSect (v, ..., drop=TRUE)
|
v |
An ObjectArray (including subclasses) or block matrix object. |
i, j, ... |
The indices. |
drop |
Logical, if true, reduce the number of dimensions, where possible. |
zero |
Logical, if true, replace ZERO with zero, or a zero matrix. |
value |
A suitable value to assign. |
ObjectArray (and NestMatrix), are similar to lists, so:
Single bracket subsetting returns another ObjectArray, which is a subset of the original.
Double bracket subsetting gets or sets a single element within the ObjectArray.
For PartMatrix:
Currently, single bracket subsetting is not supported.
Currently, double bracket subsetting indexes a single submatrix.
Note that the number of indices used in an ObjectArray depends on the number of dimensions.
The number of indices in PartMatrix objects is always two.
And the number of indices for SectMatrix subsetting depends on the VMap object.
Note that there are restrictions on what can be assigned:
An ObjectArray may be restricted by its CLASS slot, determined when the object is constructed.
Other objects may have restrictions on the sizes of submatrices.
ObjectArray
NestMatrix
PartMatrix
SectMatrix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.