fboot_read: Read the robustness of a functional clustering evaluated by...

Description Usage Arguments Details Value Examples

View source: R/fexport.R

Description

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

Usage

1
2
fboot_read(filename,
           opt.var = c("assemblages", "performances"))

Arguments

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

a list of list of matrices, identical to this resulting from the function fboot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# save "rtest" in the file "myRecord.*".

filename <- tempfile(pattern = "myRecord", tmpdir = tempdir())

fboot_write(fres = CedarCreek.2004.2006.res,
            lboot = CedarCreek.2004.2006.boot.performances,
            filename = filename,
            opt.var  = "performances")

lboot <- fboot_read(filename = filename, opt.var = "performances")

all.equal(lboot, CedarCreek.2004.2006.boot.performances)

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