collectRunsTess: Collect TESS run results from multiple folders

Description Usage Arguments Details Value Examples

View source: R/pophelper.R

Description

Collect TESS cluster run files from multiple folders to one folder and rename each run by folder name

Usage

1
collectRunsTess(runsdir = NULL, newdir = NULL)

Arguments

runsdir

A character path indicating the directory containing TESS runs in multiple directories. To use current working directory, set runsdir=getwd(). Use choose.dir() for interactively selecting the directory.

newdir

A character indicating the name/path of the new directory to be created with the collected runs.

Details

Within each TESS run folder, the function searches for filename ending with 'TR.txt' as the cluster file. This file is copied to the new folder and renamed as the name of the respective run directory. Therefore, DO NOT manually rename original run files or directories.

See the vignette for more details.

Value

Two integers are returned. The first denotes the number of TESS run files copied and renamed. The second number denotes number of directories without TESS run files.

Examples

1
2
3
4
## Not run: 
collectRunsTess(runsdir=getwd(),newdir="output")

## End(Not run)

royfrancis/pophelper documentation built on Jan. 1, 2021, 4:58 p.m.