splitOutput: Split Output by Patch

Description Usage Arguments Examples

View source: R/MGDrivE-Auxiliary.R

Description

Split output into multiple files by patches.

Usage

1
splitOutput(readDir, writeDir = NULL, remFile = TRUE, verbose = TRUE)

Arguments

readDir

Directory where output was written to

writeDir

Directory to write output to. Default is readDir

remFile

Remove original output? Default is TRUE

verbose

Chatty? Default is TRUE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# This example assumes user has already run MGDrivE and generated output.
#  If that's untree, see vignette for complete example
fPath <- "path/to/data/containing/folder"
oPath <- "path/to/write/output"

# split data by patch, keep original files
#  no return value
splitOutput(readDir = fPath, writeDir = oPath, remFile = FALSE)

# Alternatively, remove the original files and write new ones in their place
fPath <- "path/to/data/containing/folder"

splitOutput(readDir = fPath, writeDir = NULL, remFile = TRUE)

## End(Not run)

MGDrivE documentation built on Oct. 23, 2020, 7:28 p.m.