# 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