[-methods {Matrix}R Documentation

Methods for "[": Extraction or Subsetting in Package 'Matrix'.

Description

Methods for "[", i.e., extraction or subsetting in package Matrix.

Methods

There are more than these:

x = "dsparseMatrix", i = "missing", j = "missing", drop= "ANY"
...
x = "dsparseMatrix", i = "missing", j = "numeric", drop= "logical"
...
x = "dsparseMatrix", i = "missing", j = "numeric", drop= "missing"
...
x = "dsparseMatrix", i = "numeric", j = "missing", drop= "logical"
...
x = "dsparseMatrix", i = "numeric", j = "missing", drop= "missing"
...
x = "dsparseMatrix", i = "numeric", j = "numeric", drop= "logical"
...

See Also

Extract about the standard extraction.

Examples

str(m <- Matrix(round(rnorm(7*4),2), nrow = 7))
## wrongly looses class: m[]; error: m[1,1]



[Package Matrix version 0.95-10 Index]