Learn R Programming

pcutils (version 0.2.8)

mmscale: Min_Max scale

Description

Min_Max scale

Usage

mmscale(x, min_s = 0, max_s = 1, n = 1, plot = FALSE)

Value

a numeric vector

Arguments

x

a numeric vector

min_s

scale min

max_s

scale max

n

linear transfer for n=1; the slope will change if n>1 or n<1

plot

whether plot the transfer?

Examples

Run this code
x <- runif(10)
mmscale(x, 5, 10)

Run the code above in your browser using DataLab