vect.map: Maps a given vector into a given range

View source: R/rutils.R

vect.mapR Documentation

Maps a given vector into a given range

Description

Maps a given vector into a given range

Usage

vect.map(x, minimum = 0, maximum = 1)

Arguments

x

A numeric vector: Vector to be mapped

minimum

A numeric scalar: Specifies the lower bound of the output

maximum

A numeric scalar: Specifies the higher bound of the output

Value

A numeric vector

Examples

vect.map(c(1, 2, 3), minimum = 100, maximum = 300)
[1] 100 200 300


genpack/gener documentation built on Jan. 27, 2025, 1:07 a.m.