normalize: Normalize a numeric vector

Description Usage Arguments Value Author(s) Examples

Description

Normalize a numeric vector such that all values lie between 0 and 1. The minimum of the new vector is 0, the maximum is 1.

Usage

1

Arguments

x

A numeric vector.

Value

A numeric vector. All values lie between 0 and 1, the maximum is 1, the minimum 0.

Author(s)

Angela Bohn angela.bohn at gmail.com

Examples

1
2
a <- c(1,2,3,4)
normalize(a)

snatm documentation built on May 2, 2019, 5:01 p.m.

Related to normalize in snatm...