Learn R Programming

functClust (version 0.1.6)

fclust_read: Read a functional clustering for one or several performances

Description

Read the files resulting from a functional clustering and saved in text format in 6 different files by using function fclust_write().

Usage

fclust_read(filename = "")

Arguments

filename

a string, used as radical for the 6 file names.

Value

The result of the functional clustering recorded in the files "filename.*.csv".

Details

The results are saved in 5 different files.

  • "filename.options.csv": contains nbElt, nbAss, nbOpt, "opt.method", "opt.mean", "opt.model".

  • "filename.inputs.csv": contains fobs and names(fobs), xpr and names(xpr).

  • "filename.trees.csv": contains the hierarchical tree tree$aff and tree$cor.

  • "filename.matrices.csv": contains the matrices mCal, mPrd, mMotifs, tCal, tPrd, and tNbcl.

  • "filename.stats.csv": contains both statistical matrices mStats and tStats.

If only a file does not exist or is corrupted, the function is stopped.

See Also

fclust: make a functional clustering, fclust_plot: plot the results of a functional clustering, fclust_write: save the results of a functional clustering, fclust_read: read the results of a functional clustering.

Examples

Run this code
# NOT RUN {
# save "res" in the files "myRecord.*" then read them again.

res <- CedarCreek.2004.res
filename <- tempfile(pattern = "myRecord", tmpdir = tempdir())

fclust_write(res, filename)
res <- fclust_read(filename)

all.equal(res, CedarCreek.2004.res)


# }

Run the code above in your browser using DataLab