get_provenance: Get indexes of provenance-related variables

Description Usage Arguments Value

View source: R/get_variables.R

Description

Get indexes of the compositional and petrographic variables indicative of provenance. Petrographic variables must use the cerUB naming system. Compositional variables must have been transformed using transform_coda.

Usage

1
get_provenance(data, coda_variables, transformation_method = "")

Arguments

data

Data frame containing petrographic variables that use the cerUB naming system.

coda_variables

Character/Numeric, vector with the names/indexes of the compositional variables.

transformation_method

Character, vector specifying a transformation: "ALR" -> additive log-ratio, "CLR" -> centered log-ratio, "ILR" -> isometric log-ratio. Additionally, accepts "log" for applying logarithmic transformation.

Value

List of two numeric vectors containing the column indexes of (1) petrographic and (2) compositional variables.


Andros-Spica/cerUB documentation built on June 9, 2020, 9:22 p.m.