inst/examples/ex-scale.R

## Data from Aitchison 1986
data("hongite")

## Coerce to compositional data
coda <- as_composition(hongite)

## Center and scale
scaled <- scale(coda, center = TRUE, scale = TRUE)
mean(scaled)
head(scaled)
tesselle/nexus documentation built on June 1, 2025, 9:04 p.m.