threshold {cmapR}R Documentation

Threshold a numeric vector

Description

Threshold a numeric vector

Usage

threshold(x, minval, maxval)

Arguments

x

the vector

minval

minium allowed value

maxval

maximum allowed value

Value

a thresholded version of x

Examples

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


[Package cmapR version 1.5.3 Index]