[<--methods {Matrix}R Documentation

Methods for "[<-" - Assigning to Subsets for 'Matrix'

Description

Methods for "[<-", i.e., extraction or subsetting mostly of matrices, in package Matrix.

Methods

There are more than these:

x = "Matrix", i = "missing", j = "missing", value= "ANY"
is currently a simple fallback method implementation which ensures “readable” error messages.
x = "Matrix", i = "ANY", j = "ANY", value= "ANY"
currently gives an error
x = "denseMatrix", i = "index", j = "missing", value= "numeric"
...
x = "denseMatrix", i = "index", j = "index", value= "numeric"
...
x = "denseMatrix", i = "missing", j = "index", value= "numeric"
...

See Also

[-methods for subsetting "Matrix" objects; index-class; Extract about the standard subset assignment (and extraction).

Examples

str(m <- Matrix(round(rnorm(7*4),2), nrow = 7))


[Package Matrix version 0.995-8 Index]