hht (version 2.1.3)

CombineTrials: Gather EEMD trial files

Description

This function gathers trial files from multiple directories, renumbers them, and saves them to a single directory for processing using EEMDCompile.

Usage

CombineTrials(in.dirs, out.dir, copy=TRUE)

Arguments

in.dirs
Directories containing trial file sets from one EEMD run.
out.dir
Directory in which to save all trial files.
copy
Copy files (TRUE) or move them (FALSE).

Value

The trial files are saved in the directory specified by out.dir.

Details

Parallel processing is an efficient method for running EEMD. However, this will result in several directories, each with trial files numbered from 1 to N. These files cannot simply be copied together into the same directory, because then they would overwrite each other. This function gathers all trial files in multiple directories, renumbers them, and saves them in a different directory.

See Also

EEMD, EEMDCompile

Examples

Run this code
#Suppose you have run 3 different EEMD sets of 100 trials each 
#and saved the results in EEMD1, EEMD2, EEMD3, respectively:
in.dirs <- c("/home/user/EEMD1", "/home/user/EEMD2/", "/home/user/EEMD3")
out.dir <- "/home/user/all.trials"
## Not run: CombineTrials(in.dirs, out.dir)
#Now all your trials should be located in /home/user/all.trials, 
#numbered 1 through 300

Run the code above in your browser using DataLab