allIndex-class {externalVector} | R Documentation |
When used as a subscript for a vector object x
,
this is equivalent to seq(length(x))
. When used as a subscript for
the i
-th dimension of an array object x
, this is
equivalent to seq(dim(x)[i])
.
Objects can be created by calls of the form new("allIndex")
.
Objects from this class can not be modified and they are all equivalent.
.Data
:"logical"
, this is
always equal to TRUE
.
Class "logical"
, directly.
Class "vectorIndex"
, directly.
Signature components for the methods are:
x | The class "allIndex" |
scalar | Length one positive "integer" |
i | The class "ANY" |
value | The class "ANY" |
.Object | The class "allIndex" |
x+scalar
:scalar
to x
.
Result is x
. scalar+x
:scalar
to x
.
Result is x
. x*scalar
:x
by scalar
.
Result is x
. scalar*x
:x
by scalar
.
Result is x
. x
. If value is of
length 2, this may create a "matrixIndex". x[i]
:x[]
:x[i] <- value
:"allIndex"
are not mutable. x[[i]] <- value
:"allIndex"
are not mutable. allNA(x)
:x
NA
? Result is
always FALSE
. anyNA(x)
:x
NA
? Result is
always FALSE
. initialize(.Object)
:"allIndex"
. length(x)
:x
which is always
Inf
. length(x) <- value
:x
. Always
results in an error.
vectorIndex-class
for the super class of "allIndex"
.