range01: Normalize a numeric vector to 0-1 range

View source: R/range01.R

range01R Documentation

Normalize a numeric vector to 0-1 range

Description

This function normalizes a numeric vector to have minimum of 0 and maximum of 1, with values in between linearly transformed. It ignores NA values in the calculation of min and max.

Usage

range01(x)

Arguments

x

numeric vector to be normalized


mjdufort/miscHelpers documentation built on Feb. 4, 2024, 7:44 p.m.