Signac (version 0.2.4)

SubsetMatrix: Subset matrix rows and columns

Description

Subset the rows and columns of a matrix by removing rows and columns with less than the specified number of non-zero elements.

Usage

SubsetMatrix(mat, min.rows = 1, min.cols = 1)

Arguments

mat

A matrix

min.rows

Minimum number of non-zero elements for the row to be retained

min.cols

Minimum number of non-zero elements for the column to be retained

Value

Returns a matrix

Examples

Run this code
# NOT RUN {
SubsetMatrix(mat = volcano)
# }

Run the code above in your browser using DataLab