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

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

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.

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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)

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