ez.rescale01: rescale a vector to 0-1

ez.rescale01R Documentation

rescale a vector to 0-1

Description

rescale a vector to 0-1

Usage

ez.rescale01(x)

Value

if x is not numeric, return original x (unchanged)

Note

step 1: if there is negative value, x - min(x); step 2: x/max(x)


jerryzhujian9/ezmisc documentation built on March 9, 2024, 12:44 a.m.