Learn R Programming

functClust (version 0.1.6)

fboot_read: Read the robustness of a functional clustering evaluated by bootstrapping from 1 to (all-1) observations

Description

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

Usage

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".

Value

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

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.

Examples

Run this code
# NOT RUN {
# 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)


# }

Run the code above in your browser using DataLab