Learn R Programming

PSCBS (version 0.38.4)

mergeTwoSegments.AbstractCBS: Merge two neighboring segments

Description

Merge two neighboring segments into one segment, which is done by dropping their common change point and recalculating the segment statistics.

Usage

## S3 method for class 'AbstractCBS':
mergeTwoSegments(...)

Arguments

left
An integer specifying the segments (left, left+1) to be merged.
update
If TRUE, segment statistics are updated.
verbose
A logical or a Verbose object.
...
Not used.

Value

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

See Also

To merge a segment and its two flanking segments, see *mergeThreeSegments(). To drop regions (a connected set of segments) see *dropRegions(). For more information see AbstractCBS.