Learn R Programming

functClust (version 0.1.6)

ftest_read: Read the significance of different variables of a functional clustering

Description

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

Usage

ftest_read(filename,
           opt.var = c("components", "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, specifying the last part of the file-name. opt can only be equal to "components", "assemblages" or "performances".

Value

a list of matrices, each containing the results for a clustering index.

Details

The functions ftest_components, ftest_assemblages, ftest_performances, fboot_assemblages and fboot_performances. generate a list 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 "res" in the files "myRecord.*" then read it again.

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

ftest_write(fres  = CedarCreek.2004.2006.res,
            rtest = CedarCreek.2004.2006.test.components,
            filename = filename,
            opt.var  = "components")

rtest <- ftest_read(filename = filename, opt.var = "components")

all.equal(rtest, CedarCreek.2004.2006.test.components)


# }

Run the code above in your browser using DataLab