| ftest_read | R Documentation |
Read a file of results obtained by a test of significance of functional clustering.
ftest_read(filename,
opt.var = c("components", "assemblages", "performances") )
filename |
a string, used as radical for naming the file
|
opt.var |
a string, specifying the last part of the file-name.
|
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.
a list of matrices, each containing the results for a clustering index.
# 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)