Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mix2compositions

Transformations from 'mixtures' to 'compositions' classes


Description

Transformations from 'mixtures' of the "mixR" library to 'compositions' classes 'aplus', 'acomp', 'rcomp', 'rplus' and 'rmult'.

Usage

mix.2aplus(X)
   mix.2acomp(X)
   mix.2rcomp(X)
   mix.2rplus(X)
   mix.2rmult(X)

Arguments

X

mixture object to be converted

Details

A 'compositions' object is obtained from the mixtute object m, having the same data matrix as mixture object m i.e. m\$mat.

Value

A 'compositions' object of the class 'aplus', 'acomp', 'rcomp', 'rplus' or 'rmult'.

See Also

Examples

## Not run: 
m <- mix.Read("Glac.dat")      # reads the Glacial data set from Aitchison (1986)
m <- mix.Extract(m,c(1,2,3,4))   # mix object with closed four parts subcomposition
ap <- mix.2aplus(m)   # ap is a 'compositions' object of the aplus class
ac <- mix.2acomp(m)   # ac is a 'compositions' object of the acomp class

## End(Not run)

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.