standardize: Standardize a vector of numbers

Description Usage Arguments Value Examples

View source: R/datascaling.R

Description

This standardizes a vector of numbers. Standardization rescales the original data into a range between a and b which are given as parameters. They are 0 and 1 respectively by default.

Usage

1
standardize(x, a = 0, b = 1)

Arguments

x

the vector of numbers to standardize

a

the lower limit of the wanted scale

b

the upper limit of the wanted scale

Value

the rescaled vector of numbers

Examples

1
standardize(rnorm(10, 20, 10))

DoktorMike/datools documentation built on Feb. 28, 2021, 8:39 a.m.