Check if several assemblages have the same elemental composition, then average the performances of assemblages with an identical elemental composition.
check_repeat(fobs, mOccur, opt.mean = "amean", opt.repeat = FALSE )
a numeric vector. The vector fobs
contains the
quantitative performances of assemblages.
a matrix of occurrence (occurrence of elements).
Its first dimension equals to length(fobs)
. Its second dimension
equals to the number of elements.
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
.
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.
Return a list containing:
$fobs
: the matrix of averaged performances of unique assemblages.
$mOccur
: the matrix of occurrence of unique assemblages.
None.