fclust_read: Read a functional clustering for one or several performances

Description Usage Arguments Details Value See Also Examples

View source: R/fexport.R

Description

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

Usage

1
fclust_read(filename = "")

Arguments

filename

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

Details

The results are saved in 5 different files.

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

Value

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

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

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

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