Learn R Programming

ohenery (version 0.1.3)

normalize: Normalize a vector to sum to one.

Description

Divide a vector by its sum, resulting in a vector with sum equal to one.

Usage

normalize(x)

Value

the input divided by its sum. For the row-wise version, each row is divided by its sum.

Arguments

x

vector of input data.

Author

Steven E. Pav shabbychef@gmail.com