externalVectorWithStorage-class {externalVector} | R Documentation |

This is a subclass of `"externalVector"`

that
implements the use of arbitrary external backends for storing the
elements of the vector.

Objects can be created by calls of the form ```
externalVector(type,
lengtyh, storageClass)
```

.

`storage`

:- Object of class
`"externalStorage"`

, the storage backend for the vector elements. `Names`

:- Object of class
`"vectorNamesType"`

, names of the elements. `Dim`

:- Object of class
`"integerOrNull"`

, dimension of the object. `DimNames`

:- Object of class
`"listOrNull"`

, dimnames of the object

Class `"externalVector"`

, directly.
Class `"vectorNamesType"`

, directly.

- e1 op e2
- For any arithmetic or comparison operation
`op`

this returns the result of the operation. Either (or both) of`e1`

and`e2`

are of class`"externalVectorWithSTorage"`

. - Complex(z)
- Return the result of an operation in the
`Complex`

group generic. - Math(x)
- Return the result of an operation in the
`Math`

group generic. - log(x)
- Return natural logarithm of
`x`

. - log(x, base)
- Return logarithm of
`x`

with base`base`

. - x[i, j, ..., drop=FALSE]
- Extract a subset of
`x`

according to the given subscripts. - x[i, j, ...] <- value
- Subassign of
`x`

by`value`

according to the given subscripts. - as.Rvector(x)
- Coerce
`x`

to a basic R vector with same names, dimension and dimnames (if any of these are present in`x`

). - asEach(x, type, arrayOnly)
- Coerce
`x`

so that it now behaves like a basic R vector with the same class as`type`

. - colSums(x, na.rm, dims)
- Return the column sums of
`x`

. - colMeans(x, na.rm, dims)
- Return the column means of
`x`

. - rowSums(x, na.rm, dims)
- Return the row sums of
`x`

. - rowMeans(x, na.rm, dims)
- Return the row means of
`x`

. - dim(x)
- Return the dimension of
`x`

. - dim(x) <- value
- Set the dimension of
`x`

to`value`

. - dimnames(x)
- Return the dimnames of
`x`

. - getExternalStorage(x)
- Return the
`storage`

slot of`x`

. - getNativeStorageMethods
- Return
`getNativeStorageMethods(x@storage)`

. - is.finite(x)
- Return an external vector of logicals with same
length as
`x`

indicating if an element of`x`

is finite. - is.infinite(x)
- Return an external vector of logicals with same
length as
`x`

indicating if an element of`x`

is infinite. - is.na(x)
- Return an external vector of logicals with same
length as
`x`

indicating if an element of`x`

is`NA`

. - is.nan(x)
- Return an external vector of logicals with same
length as
`x`

indicating if an element of`x`

is`NaN`

. - length(x)
- Return the length of
`x`

. - length(x) <- value
- Set the length of
`x`

to`value`

. - names(x)
- Return the names of
`x`

. - names(x) <- value
- Set the names of
`x`

to`value`

. - all(x, ..., na.rm)
- Are all the values
`TRUE`

? - any(x, ..., na.rm)
- Are any of the values
`TRUE`

? - min(x, ..., na.rm)
- Minima of the values.
- max(x, ..., na.rm)
- Maxima of the values.
- range(x, ..., na.rm)
- Range of the values.
- prod(x, ..., na.rm)
- Product of the values.
- sum(x, ..., na.rm)
- Sum of the values.
- lapply(X, FUN, ...)
- Lapply for "externalVectorWithStorage" class.
- setDimNames(x, value)
- Set the dimnames of
`x`

to`value`

without any error checking or coercion. Return the modified`x`

. - setNames(x, value)
- Set the names of
`x`

to`value`

without any error checking or coercion. Return the modified`x`

. - rebind(x, length.x = length(x), type = defaultElement(x), names.x = names(x), dim.x = dim(x), dimnames.x = dimnames(x), ..., arrayOnly = FALSE)
- Create an
`"externalVectorWithStorage"`

object with the same external storage backend class as`x`

but with (possibly) new length, type, names, dim or dimnames. If arrayOnly is FALSE, the names, dim and dimnames for the new object are not set. - initialize(.Object, ...)
- Initialize a new object from class
`"externalVectorWithSTorage"`

.

`externalVector`

and `externalMatrix`

for how
how to create new objects from this class easily.

[Package *externalVector* version 1.0.14 Index]