drop_nearly_all_zero: Drop columns in a matrix which are nearly all zeroes

Description Usage Arguments Value

View source: R/drop-nearly-all-zero.R

Description

Given a matrix, drops all columns which contain more than 'threshold' proportion of zeroes.

Usage

1
drop_nearly_all_zero(mat, max_zero_proportion = 0.5)

Arguments

mat

matrix of data

max_zero_proportion

value in [0,1]. Colums with more than this proportion of zeroes are dropped

Value

the original matrix with nearly-zero columns dropped


JimSkinner/toftools documentation built on Oct. 30, 2019, 7:55 p.m.