check_repeat: Check for identical assemblages

Description Usage Arguments Details Value

View source: R/fclust.R

Description

Check if several assemblages have the same elemental composition, then average the performances of assemblages with an identical elemental composition.

Usage

1
check_repeat(fobs, mOccur, opt.mean = "amean", opt.repeat = FALSE )

Arguments

fobs

a numeric vector. The vector fobs contains the quantitative performances of assemblages.

mOccur

a matrix of occurrence (occurrence of elements). Its first dimension equals to length(fobs). Its second dimension equals to the number of elements.

opt.mean

a character equals to "amean" or "gmean". Switchs to arithmetic formula if opt.mean = "amean". Switchs to geometric formula if opt.mean = "gmean".

Modelled performances are computed using arithmetic mean (opt.mean = "amean") or geometric mean (opt.mean = "gmean") according to opt.model.

opt.repeat

a logical. in any case, the function looks for different assemblages with identical elemental composition. Messages indicate these identical assemblages. If opt.repeat = FALSE (by default), their performances are averaged. If opt.repeat = TRUE, nothing is done, and the data are processed as they are.

Details

None.

Value

Return a list containing:

$fobs: the matrix of averaged performances of unique assemblages. $mOccur: the matrix of occurrence of unique assemblages.


functClust documentation built on Dec. 2, 2020, 5:06 p.m.