Learn R Programming

brainwaver (version 1.6)

read.var.txt: Exportation and importation internal objects.

Description

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

Usage

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

Arguments

wave.var.list
object of class "Wave Variance" containing the vectors of variance to be exported.

Value

For read.var.txt function : Object of class "Wave Variance", basically, a list with the following components
d?
vectors of variance for each scale of the wavelet decomposition.
lowerd?
vector containing the lower bound of the variance for each scale of the wavelet decomposition.
upperd?
vector containing the upper bound of the variance for each scale of the wavelet decomposition.

Details

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

See Also

read.cor.txt, save.cor.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.var.list<-const.var.list(brain, method = "modwt" ,wf = "la8", n.levels = 4,
                               boundary = "periodic", export.data=FALSE)

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

#Import the data
read.var.txt()

Run the code above in your browser using DataLab