Learn R Programming

fastml (version 0.7.7)

clamp01: Clamp Values to [0, 1]

Description

Truncates a numeric vector so all values lie within the [0, 1] interval.

Usage

clamp01(x)

Value

The clamped numeric vector.

Arguments

x

A numeric vector.