Learn R Programming

DEXiR (version 1.0.2)

norm_max: norm_max

Description

Normalize values so that max(values) == max.

Usage

norm_max(values, max = 1)

Value

values normalized so that max(result) == max. Returns unchanged values when max(values) == 0.

Arguments

values

A numeric vector.

max

numeric(1).

See Also

norm_none(), norm_sum()

Examples

Run this code
norm_max(c(0, 0.5, 0.7))

Run the code above in your browser using DataLab