norma: Normalize

Description Usage Arguments See Also Examples

View source: R/fitrange.R

Description

Linearly shift and scale a numeric vector so that it has a given range, about a given centre.

Usage

1
norma(x, c = 0, r = 2)

Arguments

x

a numeric vector

c

the centre (as in the midrange) for the new vector

r

the range of the new vector

See Also

fitrange

Examples

1
range(norma(runif(9, -2, 0.1), 0, 2))

AkselA/R-ymse documentation built on March 21, 2020, 9:52 a.m.