Learn R Programming

brainwaver (version 1.6)

read.cor.txt: Exportation and importation of internal objects.

Description

Reads text files and imports them in object of class "Wave Correlation". Exports object of class "Wave Correlation".

Usage

read.cor.txt() save.cor.txt(wave.cor.list)

Arguments

wave.cor.list
object of class "Wave Correlation" containing the correlation matrices to be exported.

Value

For read.cor.txt function : Object of class "Wave Correlation", basically, a list with the following components
d?
Correlation matrix for each scale of the wavelet decomposition.
lowerd?
matrix containing the lower bound of the correlation for each scale of the wavelet decomposition.
upperd?
matrix containing the upper bound of the correlation for each scale of the wavelet decomposition.

Details

These two functions cannot be used separately. The names of the files used in read.cor.txt are given by the save.cor.txt functions

See Also

read.var.txt, save.var.txt

Examples

Run this code
data(brain)
brain<-as.matrix(brain)

# WARNING : To process only the first five regions
brain<-brain[,1:5]



# Construction of the correlation matrices for each level of the wavelet decomposition
wave.cor.list<-const.cor.list(brain, method = "modwt" ,wf = "la8", n.levels = 4, 
                              boundary = "periodic", p.corr = 0.975,export.data=FALSE)

#Export the data
save.cor.txt(wave.cor.list)

#Import the data
read.cor.txt()

Run the code above in your browser using DataLab