threshold: Threshold a numeric vector

Description Usage Arguments Value Examples

View source: R/math.R

Description

Threshold a numeric vector

Usage

1
threshold(x, minval, maxval)

Arguments

x

the vector

minval

minium allowed value

maxval

maximum allowed value

Value

a thresholded version of x

Examples

1
2
x <- rnorm(20)
threshold(x, -0.1, -0.1)

cmapR documentation built on Dec. 12, 2020, 2 a.m.