constructors | R Documentation |
Modify slots of spam
objects
rowpointers( x) <- value
colindices( x) <- value
entries( x) <- value
x |
a |
value |
vector of appropriate length. |
Various tests are performed. Thus much slower than direct
assignment.
Slot dimension
should be changed through pad
or dim
Modified spam
object.
Reinhard Furrer
x <- diag.spam( 2)
rowpointers( x) <- c(1,1,3)
# The last line is equivalent to
x@rowpointers <- as.integer( c(1,1,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.