map: A function to map values in a range

View source: R/map.R

mapR Documentation

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)

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

Value

a numeric value


gapmap documentation built on May 29, 2024, 4:39 a.m.