filter_mat {mina}R Documentation

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.

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

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.


[Package mina version 1.2.0 Index]