normalize: Normalize a vector

View source: R/auxil.R

normalizeR Documentation

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)


climextRemes documentation built on Aug. 7, 2022, 1:06 a.m.