make_fclust: Make the formatted result from a functional clustering

Description Usage Arguments Details Value

View source: R/fclust.R

Description

Check and homogeneize the format of results from a functional clustering, then make the formatted result.

Usage

1
make_fclust(res, opt.na, opt.repeat, affectElt)

Arguments

res

an object resulting from a functional clustering.

opt.na

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.

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.

affectElt

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.

Details

The results are saved in the file "filename.options.csv". If the file does not exist or is corrupted, the function is stopped.

Value

fres, which is an object resulting from a functional clustering.


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