CombineTrials: Gather EEMD trial files

View source: R/empirical_mode_decomposition.R

CombineTrialsR Documentation

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).

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.

Value

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

Author(s)

Daniel Bowman danny.c.bowman@gmail.com

See Also

EEMD, EEMDCompile

Examples

#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

hht documentation built on March 31, 2023, 10:08 p.m.

Related to CombineTrials in hht...