normalize: rescale numeric objects

Description Usage Arguments Value

View source: R/transform.R

Description

rescale numeric objects

Usage

1
2
3
normalize(v, ...)

rescale(x, low = 0, high = 1, ...)

Arguments

v

vector/matrix to be rescaled

low

minimum of the resulting interval

high

maximum of the resulting interval

...

parameters passed to min and max (or range) methods

Value

normalize returns vector/matrix rescaled to the [0;1] interval

rescale returns vector/matrix rescaled to the [low;high] interval


vh-d/VHtools documentation built on May 3, 2019, 6:11 p.m.