Learn R Programming

PSCBS (version 0.38.4)

mergeThreeSegments.AbstractCBS: Merge a segment and its two flanking segments

Description

Merge a segment and its two flanking segments into one segment, and recalculating the segment statistics.

Usage

## S3 method for class 'AbstractCBS':
mergeThreeSegments(fit, middle, ...)

Arguments

middle
An integer specifying the three segments (middle-1, middle, middle+1) to be merged.
...
Additional arguments passed to *mergeTwoSegments().

Value

  • Returns an AbstractCBS of the same class with two less segment.

See Also

Internally *mergeTwoSegments() is used. For more information see AbstractCBS.