noneIndex-class {externalVector} | R Documentation |

## Class "noneIndex", index class representing a subscript for none
of the elements of a vector or an array dimension

### Description

When used as a subscript for a vector object
or for any dimension of an array object
this is equivalent to `integer(0)`

.

### Objects from the Class

Objects can be created by calls of the form `new("noneIndex")`

.
Objects from this class can not be modified and they are all equivalent.

### Slots

`.Data`

:- Object of class
`"integer"`

, this is
always equal to `integer(0)`

.

### Extends

Class `"integer"`

, directly.
Class `"vectorIndex"`

, directly.

### Methods

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`

:- Add
`scalar`

to `x`

.
Result is `x`

.
`scalar+x`

:- Add
`scalar`

to `x`

.
Result is `x`

.
`x*scalar`

:- Multiply
`x`

by `scalar`

.
Result is `x`

.
`scalar*x`

:- Multiply
`x`

by `scalar`

.
Result is `x`

.
- dim(x) <- value
- Set a dimension on
`x`

. If value is of
length 2, this may create a "matrixIndex".
`x[i]`

:- Subset x. The result is an object of class
`"NAIndex"`

of length same as
`length(integer(0)[i])`

.
`x[]`

:- Subset x with the subscript missing. Result is x.
`x[i] <- value`

:- Subassign x. Results in an error (as
objects from class
`"noneIndex"`

are not mutable.
`x[[i]] <- value`

:- Subassign x. Results in an error (as
objects from class
`"noneIndex"`

are not mutable.
`allNA(x)`

:- Are all elements of
`x`

`NA`

? Result is
always `FALSE`

.
`anyNA(x)`

:- Is any element of
`x`

`NA`

? Result is
always `FALSE`

.
`initialize(.Object)`

:- Initialize an object from class
`"allIndex"`

.
`length(x)`

:- Return the length of
`x`

which is always
`0`

.
`length(x) <- value`

:- Modify the length of
`x`

. Always
results in an error.

### See Also

`vectorIndex-class`

for the super class of `"noneIndex"`

.

[Package

*externalVector* version 1.0.14

Index]