ism.subset: Subsetting for InfinitySparseMatrices

subset.InfinitySparseMatrixR 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


optmatch documentation built on Nov. 16, 2023, 5:06 p.m.