scalevalues: Normalize values between 0 and 1

View source: R/functions.r

scalevaluesR Documentation

Normalize values between 0 and 1

Description

Normalize values of a vector, matrix or data.frame between 0 and 1

Usage

scalevalues(x, ...)

Arguments

x

numeric (vector, matrix or data.frame) that will be scaled

...

further arguments passed to the functions min and max e.g. na.rm

Value

depending on x a normalized vector, matrix or data.frame is returned

Author(s)

Simon Frey

Examples

    ex <- c(3,5,10,2,9,20)
    scalevalues(ex)

freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.