Learn R Programming

optmatch (version 0.10.8)

subset.InfinitySparseMatrix: Subsetting for InfinitySparseMatrices

Description

This matches the syntax and semantics of subset for matrices.

Usage

# S3 method for InfinitySparseMatrix
subset(x, subset, select, ...)

# S4 method for InfinitySparseMatrix [(x, i, j = NULL, ..., drop = TRUE)

# S4 method for InfinitySparseMatrix [(x, i, j) <- value

Value

An InfinitySparseMatrix with only the selected elements.

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

Author

Mark Fredrickson