| format_fclust | R Documentation |
Fit a raw dataset,
then format it as n input for the function fclust.
format_fclust(dat, nbElt, weight = rep(1, dim(dat)[2] - nbElt - 1),
opt.na = FALSE, opt.repeat = FALSE, opt.mean )
dat |
a data.frame or matrix that brings together:
a vector of assemblage identity,
a matrix of occurrence of components within the system,
one or more vectors of observed performances.
Consequently, the data.frame or matrix dimensions are:
|
nbElt |
an integer, that specifies the number of components
belonging to interactive system.
|
weight |
a vector of numerics,
that specifies the weight of each performance.
By default, each performance is equally weighted.
If |
opt.na |
a logical.
The records for each assemblage can have |
opt.repeat |
a logical.
in any case, the function looks for
different assemblages with identical elemental composition.
Messages indicate these identical assemblages.
If |
opt.mean |
a character, equals to |
None.
Return a list containing formatted inputs, that are:
fobs: the vector of observed performances of assemblages.
names(fobs) contains the names of assemblages.
mOccur: the binary matrix of occurrence of components
within the assemblages.
dim(mOccur) = [nbAss, nbElt].
rownames(mOccur) contains the names of assemblages.
colnames(mOccur) contains the names of components.
xpr: the vector of weight of different experiments.
names(xpr) contains the names of different experiments.