fboot_write: Record the robustness of a functional clustering evaluated by...

Description Usage Arguments Details Value Examples

View source: R/fexport.R

Description

Write a file of results obtained by a test of significance of functional clustering.

Usage

1
2
fboot_write(fres, lboot, filename,
            opt.var = c("assemblages", "performances"))

Arguments

fres

an object resulting from a functional clustering obtained using the function fclust.

lboot

a list of list of matrices, generated by the function fboot.

filename

a string, used as radical for naming the file "filename.components.csv", "filemane.assemblages.csv" or "filemane.performances.csv" according to the dimensions of matrices.

opt.var

a string, that indicates the variable to test. The option can be "assemblages" or "performances".

Details

The function fboot , generate a list of lists, each one containing a matrix by clustering index ("Czekanowski_Dice", "Folkes_Mallows", "Jaccard", "Kulczynski", "Precision", "Rand", "Recall", "Rogers_Tanimoto", "Russel_Rao", "Sokal_Sneath1" and "Sokal_Sneath2" index). Only their dimensions change according the used functions. Consequently, a same function is used for recording and reading the results of both the test-functions.

Value

Nothing. It is a procedure.

Examples

1
2
3
4
5
6
# save "rtest" in the file "myRecord.*".

fboot_write(fres = CedarCreek.2004.2006.res,
            lboot = CedarCreek.2004.2006.boot.performances,
            filename = tempfile(pattern = "myRecord", tmpdir = tempdir()),
            opt.var = "performances")

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