matrixIndex-class {externalVector} | R Documentation |
Objects of class "matrixIndex"
represent subscripts
corresponding to a submatrix of some matrix of a given size. Like the
"vectorIndex"
subclasses, this is a class for internal use.
Objects can be created by calls of the form new("matrixIndex",
row, col, origdim, Names)
.
row
:"vectorIndex"
, the row
subscript. col
:"vectorIndex"
, the column
subscript. origdim
:"integer"
, the
dimension of the full matrix. Names
:"vectorNamesType"
, names
for the submatrix elements when the submatrix is treated as
vectors.
Class "externalVector"
, directly.
Signature components for the methods are:
x | The class "allIndex" |
scalar | Length one positive "integer" |
i | The class "ANY" |
j | The class "ANY" |
drop | The class "logical" |
value | The class "ANY" |
.Object | The class "allIndex" |
matrixIndex
with same origdims
represents a further
submatrix of the full matrix. If drop
is TRUE
and at
least one of the dimensions of the answer is 1
, the answer
is an object of class "vectorIndex"
instead. i
. x
. x
. x
considered as a
vector. This is same as prod(dim(x))
. x
. x
and
return the modified x
. x
and return the
modified x
.
vectorIndex-class
for the class of row and column subscripts.