powered by
Modify slots of spam objects
spam
rowpointers( x) <- value colindices( x) <- value entries( x) <- value
a spam matrix
vector of appropriate length.
Modified spam object.
Various tests are performed. Thus much slower than direct assignment. Slot dimension should be changed through pad or dim
dimension
pad
dim
x <- diag.spam( 2) rowpointers( x) <- c(1,1,3) # The last line is equivalent to x@rowpointers <- as.integer( c(1,1,3))
Run the code above in your browser using DataLab