truncate0: Truncate values in a matrix / vector to zero if they are...

View source: R/truncate0.r

truncate0R Documentation

Truncate values in a matrix / vector to zero if they are below a certain threshold.

Description

Truncate values in a matrix / vector to zero if they are below a certain threshold.

Usage

truncate0(x, tol = 0.6, sparse = TRUE)

Arguments

x

matrix / vector

tol

threshold

sparse

logical; if TRUE and x is a matrix, return a sparse matrix


hojsgaard/doBy documentation built on May 4, 2024, 5:20 a.m.