Learn R Programming

PSCBS (version 0.67.0)

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 AbstractCBS
mergeTwoSegments(...)

Value

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

Arguments

...

Not used.

Author

Henrik Bengtsson

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.