st01: [. will be removed] Standardize (rescale) values to intervat...

Description Usage Arguments Details See Also Examples

View source: R/st01.R

Description

Apply formula: (x-MIN)/(MAX-MIN)

Usage

1
2
3
st01(x, MIN = min(x), MAX = 1)

stMinMax(x, MIN = min(x), MAX = max(x))

Arguments

x

A numeric vector vector

MIN

A value treated as a minimum.

MAX

A value treated as a maximum.

Details

Use function rescale instead.

See Also

rescale

Other spMisc utilities: bru(), clc(), clear(), fCap(), isFALSE(), list_AddRm(), make.filenames(), open_wd(), printDuration(), regexp2df()

Examples

1
2
3
x <- seq(.3,1,.1)
st01(x)
st01(x, MIN = .2)

GegznaV/spMisc documentation built on April 26, 2020, 5:59 p.m.