composition function

Get composition from coordinates w.r.t. an specific basis

Get composition from coordinates w.r.t. an specific basis

Calculate a composition from coordinates with respect a given basis

composition(H, basis = NULL) comp(H, basis = NULL)

Arguments

  • H: coordinates of a composition. Either a matrix, a data.frame or a vector
  • basis: basis used to calculate the coordinates

Returns

coordinates with respect the given basis

See Also

See functions ilr_basis, alr_basis, clr_basis, sbp_basis

to define different compositional basis. See function coordinates to obtain details on how to calculate coordinates of a given composition.

  • Maintainer: Marc Comas-Cufí
  • License: GPL
  • Last published: 2023-11-25