Learn R Programming

MGDrivE (version 1.6.0)

splitOutput: Split Output by Patch

Description

Split output into multiple files by patches.

Usage

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

Run this code
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab