Learn R Programming

gapmap (version 1.0.0)

map: A function to map values in a range

Description

This function maps a value in one range to another range.

Usage

map(value, start1, stop1, start2, stop2)

Value

a numeric value

Arguments

value

input value

start1

lower bound of the value's current range

stop1

upper bound of the value's current range

start2

lower bound of the value's taget range

stop2

upper bound of the value's target range