Detailed description |
When doing 'showClass("sparseVector")' and derived types, it will show the indices of the vector as being of numeric type, but they are of integer type in objects of instantiable classes.
> showClass("dsparseVector")
Class "dsparseVector" [package "Matrix"]
Slots:
Name: x length i
Class: numeric numeric numeric
Extends:
Class "sparseVector", directly
Class "xsparseVector", directly
Class "replValueSp", by class "sparseVector", distance 2
> class(as(matrix(), "sparseVector")@i)
[1] "integer" |
|