normalize {compositions} | R Documentation |
Normalize vectors to norm 1.
normalize(x,...) ## Default S3 method: normalize(x,...)
x |
a dataset or a single vector of some type |
... |
currently not used, intended to select a different norm in the future |
The vectors given, but normalized to norm 1.
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
data(SimulatedAmounts) normalize(c(1,2,3)) normalize(acomp(c(1,2,3))) norm(normalize(acomp(sa.groups)))