Learn R Programming

climextRemes (version 0.3.1)

normalize: Normalize a vector

Description

Normalize a vector by subtracting off central point and dividing by range

Usage

normalize(vec, shift = NULL, lower = NULL, upper = NULL)

Arguments

vec

vector of values

shift

optional central point (if not provided, uses the mean of vec)

lower

optional lower end point of range (if not provided uses min of vec)

upper

optional upper end point of range (if not provided uses max of vec)