Check and homogeneize the format of results from a functional clustering, then make the formatted result.
make_fclust(res, opt.na, opt.repeat, affectElt)an object resulting from a functional clustering.
a logical.
The records for each assemblage can have NA
in matrix of occurrence or in observed assemblage performances.
If opt.na = FALSE (by default), an error is returned.
If opt.na = TRUE, the records with NA are ignored.
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.
a vector of characters or integers,
as long as the number of components nbElt,
that indicates the labels of different functional clusters
to which each component belongs.
Each functional cluster is labelled as a character or an integer, and
each component must be identified by its name in names(affectElt).
The number of functional clusters defined in affectElt
determines an a priori level of component clustering
(level <- length(unique(affectElt))).
If affectElt = NULL (by default),
the option opt.method must be specified.
If affectElt is specified,
the option opt.method switchs to apriori.
fres, which is an object
resulting from a functional clustering.
The results are saved in
the file "filename.options.csv".
If the file does not exist or is corrupted, the function is stopped.