trunVec: Truncate a vector to a given range

Description Usage Arguments Examples

View source: R/trunVec.R

Description

Truncate a vector so it fitts the range min <= x <= max.

Usage

1
trunVec(x, min = min(x), max = max(x))

Arguments

x

a vector

min

minimum value

max

maximum value

Examples

1
trun(1:10, 3, 7)

twolodzko/twextras documentation built on May 3, 2019, 1:52 p.m.