Learn R Programming

PSCBS (version 0.63.0)

dropChangePoints.AbstractCBS: Drops zero or more change points

Description

Drops zero or more change points, which is done by dropping one change point at the time using *dropChangePoint() and recalculating the segment statistics at the end.

NOTE: This method only works if there is only one chromosome.

Usage

# S3 method for AbstractCBS
dropChangePoints(fit, idxs, update=TRUE, ...)

Arguments

idxs

An integer vector specifying the change points to be dropped.

update

If TRUE, segment statistics are updated.

...

Other arguments passed to *dropChangePoint() and *updateMeans().

Value

Returns an AbstractCBS of the same class with length(idxs) segments.

See Also

For more information see AbstractCBS.