Subset the rows and columns of a matrix by removing rows and columns with less than the specified number of non-zero elements.
SubsetMatrix(mat, min.rows = 1, min.cols = 1)
A matrix
Minimum number of non-zero elements for the row to be retained
Minimum number of non-zero elements for the column to be retained
Returns a matrix
# NOT RUN { SubsetMatrix(mat = volcano) # }
Run the code above in your browser using DataLab