filter_mat: Function for filtering of matrix, rows present in less than...

Description Usage Arguments Value

View source: R/bs_pm.R

Description

Function for filtering of matrix, rows present in less than 'p' columns will be removed. After row filtering, columns with a sum of 0 wil be removed.

Usage

1
filter_mat(x, p)

Arguments

x

The input matrix to be filtered.

p

The cutoff for non-zero column number.

Value

x The same matrix after filtering.


Guan06/mina documentation built on Feb. 21, 2022, 11:56 a.m.