normalize: Normalize vectors to norm 1

Description Usage Arguments Value Author(s) See Also Examples

View source: R/compositions.R

Description

Normalize vectors to norm 1.

Usage

1
2
3
normalize(x,...)
## Default S3 method:
normalize(x,...)

Arguments

x

a dataset or a single vector of some type

...

currently not used, intended to select a different norm in the future

Value

The vectors given, but normalized to norm 1.

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

norm.rmult

Examples

1
2
3
4


compositions documentation built on May 20, 2017, 1:08 a.m.
Search within the compositions package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.