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)

cmap/cmapR documentation built on Oct. 14, 2021, 12:51 a.m.