subset.InfinitySparseMatrix {optmatch} | R Documentation |
Subsetting for InfinitySparseMatrices
Description
This matches the syntax and semantics of subset for matrices.
Usage
## S3 method for class 'InfinitySparseMatrix'
subset(x, subset, select, ...)
## S4 method for signature 'InfinitySparseMatrix'
x[i, j = NULL, ..., drop = TRUE]
## S4 replacement method for signature 'InfinitySparseMatrix'
x[i, j] <- value
Arguments
x |
InfinitySparseMatrix to be subset or bound. |
subset |
Logical expression indicating rows to keep. |
select |
Logical expression indicating columns to keep. |
... |
Other arguments are ignored. |
i |
Row indices. |
j |
Col indices. |
drop |
Ignored. |
value |
replacement values |
Value
An InfinitySparseMatrix with only the selected elements.
Author(s)
Mark Fredrickson
[Package optmatch version 0.10.7 Index]