Package: coda.base 0.5.5

Marc Comas-Cufí

coda.base: A Basic Set of Functions for Compositional Data Analysis

A minimum set of functions to perform compositional data analysis using the log-ratio approach introduced by John Aitchison (1982). Main functions have been implemented in c++ for better performance.

Authors:Marc Comas-Cufí [aut, cre]

coda.base_0.5.5.tar.gz
coda.base_0.5.5.tar.gz(r-4.5-noble)coda.base_0.5.5.tar.gz(r-4.4-noble)
coda.base_0.5.5.tgz(r-4.4-emscripten)coda.base_0.5.5.tgz(r-4.3-emscripten)
coda.base.pdf |coda.base.html
coda.base/json (API)
NEWS

# Install 'coda.base' in R:
install.packages('coda.base', repos = 'https://cloud.r-project.org')

Bug tracker:https://github.com/mcomas/coda.base/issues

Pkgdown site:https://mcomas.net

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

openblascpp

4.18 score 393 downloads 126 mentions 26 exports 4 dependencies

Last updated 1 years agofrom:f243005515. Checks:2 OK, 1 NOTE. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 24 2025
R-4.5-linux-x86_64OKMar 24 2025
R-4.4-linux-x86_64NOTEMar 24 2025

Exports:alr_basisalr_cbasiscbalance_approxcdp_basiscdp_partitioncenterclr_basisclr_ccompcompositioncoordcoordinatesdistgmeanilr_basisilr_colr_basisolr_cpairwise_basispb_basispc_basisplot_balanceread_cdpsbp_basisvariation_array

Dependencies:latticeMatrixRcppRcppArmadillo

coda.base features' enumeration

Rendered fromfeatures.Rmdusingknitr::rmarkdownon Mar 24 2025.

Last update: 2023-11-26
Started: 2022-07-18

Principal Balances

Rendered fromprincipal_balances.Rmdusingknitr::rmarkdownon Mar 24 2025.

Last update: 2023-11-26
Started: 2022-03-16

Working with log-ratio coordinates in coda.base

Rendered fromcoordinates.Rmdusingknitr::rmarkdownon Mar 24 2025.

Last update: 2023-11-26
Started: 2019-01-15

Citation

To cite package ‘coda.base’ in publications use:

Comas-Cufí M (2023). coda.base: A Basic Set of Functions for Compositional Data Analysis. R package version 0.5.5, https://CRAN.R-project.org/package=coda.base.

Corresponding BibTeX entry:

  @Manual{,
    title = {coda.base: A Basic Set of Functions for Compositional Data
      Analysis},
    author = {Marc Comas-Cufí},
    year = {2023},
    note = {R package version 0.5.5},
    url = {https://CRAN.R-project.org/package=coda.base},
  }

Readme and manuals

coda.base

https://mcomas.net/coda.base/

Installation

# Install release version from CRAN
install.packages("coda.base")
# Install development version from GitHub
remotes::install_github("mcomas/coda.base")

Help Manual

Help pageTopics
Food consumption in European countriesalimentation
Additive log-ratio basisalr_basis
Arctic lake sediments at different depthsarctic_lake
Coordinates basisbasis
The MN blood systemblood_mn
Physical activity and body mass indexbmi_activity
Balance generated from the first canonical correlation componentcbalance_approx
Isometric log-ratio basis based on canonical correlationscc_basis
Isometric log-ratio basis based on Balances.cdp_basis
CoDaPack's default binary partitioncdp_partition
Dataset centercenter
Centered log-ratio basisclr_basis
coda.basecoda.base-package coda.base
Get composition from coordinates w.r.t. an specific basiscomp composition
Get coordinates from compositions w.r.t. an specific basisalr_c clr_c coord coordinates ilr_c olr_c
Distance Matrix Computation (including Aitchison distance)dist
Employment distribution in EUROSTAT countrieseurostat_employment
Paleocological compositionsforaminiferals
Geometric Meangmean
Household expenditureshouse_expend
Household budget patternshousehold_budget
Isometric/Orthonormal log-ratio basis for log-transformed compositions.ilr_basis olr_basis
Mammal’s milkmammals_milk
Milk composition studymilk_cows
Concentration of minor elements in carbon ashesmontana
Pairwise log-ratio generator systempairwise_basis
Results of catalan parliament elections in 2017 by regions.parliament2017
Isometric log-ratio basis based on Principal Balances.pb_basis
Isometric log-ratio basis based on Principal Components.pc_basis
Calc-alkaline and tholeiitic volcanic rockspetrafm
Plot a balanceplot_balance
Pollen composition in fossilspollen
Chemical compositions of Romano-British potterypottery
Printing coordinatesprint.coda
Import data from a codapack workspaceread_cdp
Isometric log-ratio basis based on Balancessbp_basis
Serum proteinsserprot
A statistician’s time budgetstatistitian_time
Variation array is returned.variation_array
The waste composition in Cataloniawaste
Hotel posts in social mediaweibo_hotels