mergeTracks {sojourner} | R Documentation

## mergeTracks

### Description

merge track lists in a list into one

### Usage

    mergeTracks(folder, trackll)

### Arguments

`folder` | Full path to the output files.
`trackll` | A list of track lists.

### Details

IMPORTANT: Once a trackll has been merged, it cannot be masked using maskTracks().

Merging creates the following data structure: (1) first level is the folder name, (2) second level is a list of data.frames/tracks from all output files merged into one.

If not merged, track lists takes the name of individual files in the folder. If merged, the single merged track list takes the folder name.

### Value

modified trackll

### Examples

    #Basic masking with folder path with image masks
    folder = system.file('extdata', 'SWR1', package = 'sojourner')
    trackll=createTrackll(folder=folder, input=3)
    trackll.merged <- mergeTracks(folder = folder, trackll = trackll)

[Package sojourner version 1.6.0 Index]